poncho4u:
Its generally not a good idea to store images in a database. Besides, its not the bits of the image you are searching on, but rather the meta description of the image that should be stored like:
filename
location
width
height
description of image
So for example lets say you have 50 images consisting of flags of the world. What point would it be to store the pictures themselves in a database when all you really want is, to say, search on the country name?
Storing an image in a database won't buy you anything. Storing the meta information of the images will.