Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3663382
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:31:26+00:00 2026-05-19T01:31:26+00:00

Possible Duplicate: Storing Images in DB – Yea or Nay? Is it faster and

  • 0

Possible Duplicate:
Storing Images in DB – Yea or Nay?

Is it faster and more reliable to store images in the file system or should I store them in a database?

Let’s say the images will be no larger than 200 MB. The objective is fast, reliable access.

In general, how do people decide between storing files (e.g., images, PDFs) in the file system or in the database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T01:31:27+00:00Added an answer on May 19, 2026 at 1:31 am

    Personal opinion: I ALWAYS store images on the file system, and only store a filepath in the database. In many situations, databases are stored on fast (read: expensive storage, 15k RPM or SSD drives) storage. Images or other files, typically can be stored on slower (read: cheaper, larger drives, 7.2k RPM drives) storage.

    I find this to be the best, since it allows for the database to remain small in size. In general, databases store “data” well. They can search and retrieve small bits of data fast. File Systems store “files” well, they are optimized to find and retrieve larger bits of data fast.

    Obviously there are tradeoffs to both approaches, and there isn’t going to be a one-size fits all; however, there may be some use cases where storing images in the database is a good thing, if they are all quite small, and you don’t anticipate very many of them, and your database is on the same storage medium as your file share, then it probably makes sense to drop the images directly into the database.

    As a side note, SQL Server 2008R2 has a FileStream field type, which can provide the best of both worlds, I have not used it yet, so I can’t speak to how well it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Storing Images in DB - Yea or Nay? I need to store
Possible Duplicate: Storing Images in DB - Yea or Nay? For ages I've been
Possible Duplicate: Storing Images in DB - Yea or Nay? Images in database vs
Possible Duplicate: Storing Images in DB - Yea or Nay? i am curios about
Possible Duplicate: Storing Images in DB - Yea or Nay? I'm learning PHP and
Possible Duplicate: Storing Images in DB - Yea or Nay? I am making an
Possible Duplicate: Storing Images in DB - Yea or Nay? To Do or Not
Possible Duplicates: Storing Images in DB - Yea or Nay? Saving images in database
Possible Duplicate: PHP image resize on the fly vs storing resized images I was
Possible Duplicate: Storing file content into an array I'm programming a simple hangman program.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.