Search code examples
flashmp3id3v2

How do I determine where in an ID3v2 tag the image is burried?


I'm trying to load the jpg out of an mp3 (I'm doing this in Flash, but that's neither here nor there), and I've pulled open a few MP3s in a hex editor and while the rest of the tag is pretty clear, the image part is a mystery. There is a label "image/jpeg" but then I expect something resembling a byte length for the image or a string key that demarcates the end of the image, but I see nothing of the kind and the documentation on the tag is entirely unhelpful.

Would love some guidance on what I am looking for here. Surprised at how unintuitive this is turning out!

TIA


Solution

  • Don't reinvent that wheel unless you like pain. This is but one source for libraries that do the work for you.