images: best to store as a file or in the db?

Posted on 2003-02-27
Medium Priority
Last Modified: 2010-04-06
Is it best to store images in a Database?
or is it quicker just simply to keep them as files??

The file upload takes long enough as it is, is there
not yet a further delay when you upload it again to
the database?

Question by:p19wso
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

domainwalker earned 80 total points
ID: 8036027
I would store the images in a subfolder. then add them to your database as a file pointing to it. Within a program like dreamweaver mx you can set the link up to actually open the image instead of showing the file name and or location. this method works great for example if you had a products database and wanted to show a thumbnail with each product. also with them being in a subfolder you can replace the images with updated ones as long as they kept the same file name and you wouldn't need to update the file string in your database. hope this kinda helps

Expert Comment

ID: 8045501
Yeah. I would only put text into a database. Otherwise it may get too big, and db's weren't made to hold binary data.

Expert Comment

ID: 8077169
3. agreement on using the filesystem.
the server may then use the file-cache and your DB isn't blown up with the BLOBs and in case you delete them needs to defragmented (maybe)

Expert Comment

ID: 10137540
Why is this still open?
Should it be abandoned?

Expert Comment

ID: 11492786
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.  I will leave the following recommendation for this question in the Cleanup topic area:

- Accept domainwalker’s comment as answer

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…
Suggested Courses
Course of the Month12 days, 12 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question