Extracting IPTC header information from JPEG images - CodeProject
The author got the 8BIM segment format wrong. Here's the actual format: BYTE Type[4]; /* Always "8BIM" */ WORD ID; /* Various - we're looking for 0x0404 */ BYTE Name[]; /* Even-length Pascal-format string, 2 bytes or longer */ LONG Size; /* Length of ......