I can find out what the identifier is for a jpg file for use
with the bin2o program.
All I found was the one for a bitmap.
with the bin2o program.
All I found was the one for a bitmap.
Check the extension? (lol)
Look for the jpg file format on the web :)
Look for the jpg file format on the web :)
Umm, you're not making much sense to me. If by bin2o you mean one of the programs that turn a binary file into a .obj file you can link with the rest of your code, the identifier you choose really has nothing to do with the file content. You could use flafgiraf, skumfersken, haabloes, leverpostej or bananmos for all the linker cares.
I understood it as him using bintodb and checking for the BMP identifier. JPG should have one too afaik.
You want to look at the JFIF and EXIF headers - which are actually incompatible since each demands that it appears first - nonetheless both often appear. Look at byte offset 6 for the first signature.
Thanks to MP3s with embedded pictures, JFIF and EXIF headers may be anywhere in the file, despite what the standards say. So if you want to be safe, just scan the whole file for any of those 2 headers.