Hello everybody!!!!

I am just curious if I can make a database where all the data are images like bitmap, jpeg and other pictures format...

If yes, can you pls show me some code or sites to where I can learn a lot about this..


YOUR HELP IS HIGHLY APPRECIATED....


THANK YOU IN ADVANCED....

Recommended Answers

All 2 Replies

It is generally more practical to save the path to the images in the database, rather than the images. This applies to any binary file. Let the OS file system take care of the files.

If you save the images in the database you have just doubled the disk space required to store the images. And what happens when an image is moved, renamed, or deleted?

Plus what is the point? The database can't search an image so why keep it in a database?

trudge is right, there is no point to save images in database. Displaying images from databse is relatively slow than filesystem. But if you still want to save images in database, take a look this small code snippest.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.