tags:

views:

63

answers:

1

Hi, 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

+1  A: 

If you're using SDL_image, look into IMG_Load_RW() in particular and SDL_RWops in general.

genpfault