User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 422,388 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,720 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 558 | Replies: 2
Reply
Join Date: Apr 2007
Posts: 31
Reputation: jk_bscomp has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 1
jk_bscomp jk_bscomp is offline Offline
Light Poster

Image Database

  #1  
May 2nd, 2008
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....
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 176
Reputation: trudge is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 20
trudge trudge is offline Offline
Junior Poster

Re: Image Database

  #2  
May 2nd, 2008
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?
Last edited by trudge : May 2nd, 2008 at 5:35 am.
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
Reply With Quote  
Join Date: Dec 2007
Posts: 113
Reputation: mwasif is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 13
mwasif mwasif is offline Offline
Junior Poster

Re: Image Database

  #3  
May 4th, 2008
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 8:51 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC