简体   繁体   中英

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

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM