Page 1 of 1

Displaying Binary Image

Posted: Sat Mar 08, 2008 12:42 pm
by RobbieL
I'm using getID3 to grab all the ID3 data from a bunch of MP3's. The only problem I'm come across is with the album/cover art for the MP3. I'm assuming it is stored as binary, because a long string is return with some crazy text in it. I've never worked with something like this, and struggling with a way to store the image and the display the image on a page.

Anyone got any suggestions?

Re: Displaying Binary Image

Posted: Sat Mar 08, 2008 1:43 pm
by onion2k
If you have GD installed try using ImageCreateFromString(). No idea if it'll work but it'd be amusing to try.

Re: Displaying Binary Image

Posted: Sat Mar 08, 2008 5:33 pm
by Ambush Commander
I'd assume it's a JPG/PNG/GIF file or something of the sort. Dump the binary representation in a file and then sniff it using finfo or mime and see what comes up.