Why does the database have extra characters at the end of the VARBINARY HEX?

60 Views Asked by At

Currently jpeg images are stored as VARBINARY with HEX values:

0xFFD8FFE.......

So I convert it back to binary and display the images. For the proper jpeg VARBINARY, the HEX ends with FFD9 and everything works. However, I noticed many rows have extra characters at the end. So far I've encountered with extra 0200 at the end, so the HEX is of the form:

0xFFD8FFE.......FFD90200

I want to know what is the extra 0200, and whether it's the only thing that can be added (from any reason), or I should expect some other unpredictable extra characters?

0

There are 0 best solutions below