Question how to read bmp image file to database?

ssenthilnathan20

New member
Joined
May 13, 2009
Messages
3
Programming Experience
3-5
Hi

Iam developing one application there is one bmp format image file there is in some data so i want read data and store data into database

Regards
S.Senthilnathan
 
I'm not sure what you mean.

But if you want to store the bitmap in your database, I would search the internet on the principes of

hashing

(easy explained, you're going to convert your image to some kind of text)
afterwards, if you want to use the image you need to do it the other way.
convert your hash back to image
 
Hashing the image would have the advantage that the image size is reduced drastically. OTOH the visual appearance might suffer.
Maybe you mean Base64 encoding?

anyway: most DBs probably supports BLOBs (binary large objects), which could be used for storing images, etc. OTOH it usually is much better to store the image somewhere in the filesystem and only store the path to the image in the DB.
 

Latest posts

Back
Top