Writing JPEG image from BLOB field
I've got a BLOB field in a MySQL database that I need to fetch and write into a .jpg
file. I already know how to query the database and开发者_运维百科 get the result, but I can't write it into a valid .jpg file. Anyone got any help?
Thanks
If you're using SDL_image, look into IMG_Load_RW() in particular and SDL_RWops in general.
精彩评论