views:

48

answers:

2

Hi guys does anyone how you can access the artwork image for an mp3. I download the mp3 from a server and save it in documents, and when i play it from file I want to display the image for the mp3?

thanks

+2  A: 

The album art is usually embedded in the ID3 tag. The id3lib library can be used to read it.

EDIT: There is also the id3v2 command-line utility. I haven't used it though.

Krumelur
+1  A: 

It's probably going to be in the ID3 tag. 2.4 and 2.3 ("APIC") are the most common, but 2.2 ("PIC") is still floating around. There are various C libraries which may help.

There's MPMediaItemArtwork, but I think that only works for files in the iTunes/iPod/whatever library.

tc.