Reputation: 1296
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
Upvotes: 1
Views: 422
Reputation: 52162
If you're using SDL_image, look into IMG_Load_RW() in particular and SDL_RWops in general.
Upvotes: 1