Personally, I would not do that. I would rather keep the image(s) in a folder or other location and store that location information in the database. This will also cut down on the size of your database overall.
But, if you are intent on doing this, you can have a look at
this link and see if it is helpful. If not, there is always Google.
Regards,
Jeff