I am not sure if it is a good practice to store images into database. You should define your column as BLOB. You will need to write some C++ class to get binary data of image you want to save. and to display image from binary data retrieved from DB.
As for me I would save images in file system and store their paths in database, I think that it is better and more simple solution.
↧