473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

id3v2 mp3 image metadata

does anyone know at what point in an mp3 the image metadata is located? and if you do know, how do you convert the binary data into an image in a picturebox?
Feb 11 '09 #1
3 6327
vekipeki
229 Expert 100+
You are using TagLib#, right? Did you check their example:

Expand|Select|Wrap|Line Numbers
  1. try
  2. {
  3.    TagLib.File file = TagLib.File.Create ("/path/to/music/file.mp3");
  4.    TagLib.Id3v2.Tag tag = file.GetTag (TagLib.TagTypes.Id3v2);
  5.  
  6.    // The file contains an ID3v2 tag.
  7.    if (tag != null)
  8.       foreach (TagLib.Id3v2.AttachedPictureFrame frame
  9.                       in tag.GetFrames ("APIC"))
  10.          SomeImageProcess (frame.Picture.Data);
  11. }
  12. catch {...}
Feb 11 '09 #2
yep taglib#, i looked at their example but i dont quite get it.

ive done what you suggested but it does not work
ive gotten error that says

"Cannot implicitly convert type 'TagLib.Tag' to 'TagLib.Id3v2.Tag'. An explicit conversion exists (are you missing a cast?)"

i also wish to display the picture in a picturebox

tnx!
Feb 11 '09 #3
vekipeki
229 Expert 100+
I haven't used this so I cannot help.

Presuming that the returned TagLib.Tag can be cast to TagLib.Id3v2.Tag, the error that you are receiving could be solved with:

Expand|Select|Wrap|Line Numbers
  1. TagLib.Id3v2.Tag tag = file.GetTag (TagLib.TagTypes.Id3v2) as TagLib.Id3v2.Tag;
  2.  
Try to get any image data to see what the returned format is, then you will decide how to display it. If it is a Bitmap object, then you can pass it to PictureBox.Image property and you're done. If not, then you will have to find or implement some conversions.
Feb 11 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: goldtech | last post by:
Right-click on a jpeg in XP click "summary" tab and there are metadata fields. My questions are: How can I extract this data for each jpeg? Is this exif data is it some proprietary MS format?...
2
by: Travis | last post by:
Hi everyone, I'm using the System.Drawing.Imaging.Bitmap to retrieve and modify the metadata tags (user comments, keywords etc) of JPEGS. I was wondering if changing these tags in any way...
2
by: BluDog | last post by:
Hi Does anyone know how to extract Jpg image metadata from an image? Cheers Blu
0
by: Robert Seidl | last post by:
I saw that VB .Net 2003 has some tools for easily reading metadata information present in some TIFF and JPG files, eg. ---------------------------------------------------------------- .... Dim b...
1
by: Reginald Johnson | last post by:
I'm trying display a popup on the mouseover of a jpeg image. I'm thinking of trying to populate the popup with text obtained from the image metadata. However, I haven't been able to find any...
1
by: Tim Kelley | last post by:
I need to read the metadata of an image, display it on the screen and allow the user to change it and then re-write the metadata back into the image. The issue I am having is if I try to rename or...
1
by: Roger | last post by:
Hi All After having no response with my earlier post i am wondeing if anyone has had any luck or seen any succesfull way of reading and writing image metadata to a jpg Thanks for any input
2
by: maria.c.vill | last post by:
Hello! Is there a way to write and read image (jpg, png) metadata with access/ vba? I'm using Access 2003. Thanks in advance, Maria
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.