use MP3 image w/o extracting

The place for "I can't figure out how to..." questions.
Post Reply
G_Man
User
Posts: 1
Joined: Mon Apr 11, 2005 3:41 am

use MP3 image w/o extracting

Post by G_Man » Mon Apr 11, 2005 3:43 am

Is thee a way to show the image from a MP3 with out it having to extract it i was thinking something like a base64 decode or something.

Thanks,

Don

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Mon Apr 11, 2005 2:05 pm

An image embedded in an MP3 is typically is the ID3v2 tag, under [APIC]. The data is available in the returned structure, and it's raw binary data, it can be written to a file or echoed to the browser (with an appropriate Content-type: header).

ameshkin69
User
Posts: 2
Joined: Thu Feb 01, 2007 6:46 am

Post by ameshkin69 » Thu Feb 01, 2007 6:49 am

Could you please show us some code that does this.

$picture = $ThisFileInfo['id3v2']['APIC'][0]['data'];


That code above will not pull anything.

Post Reply