: : I am writing a steganography program and I need to figure out where the JPEG header ends and where the image data begins. I know that JPEG's don't officially have a formal header apparently, which makes them a bit more difficult to work with than bitmaps, since their headers aren't a fixed size like bitmap files. So far, I have trashed 3 jpegs with no success. If someone has source code on a JPEG header parser, or just the right jpeg header marker to look for and its length bytes, it would be a great help.
: : Thanks in advance,
: : Russell
: Can't you just LoadPicture the image into a hidden picturebox and Point(x,y) the data you need?
: There is a faster way than Point(x, y) to get the data out, but I don't seem to get the code for getting the pointer to the data area of a picturebox to work correctly.
: DjSpirit, just a thought
That might work, but I also need to know where it begins in the file so I can write over those bytes in the image.