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

  • SEARCH
  • Home
  • 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 6848873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:55:18+00:00 2026-05-27T00:55:18+00:00

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

  • 0

Possible Duplicate:
Storing Images in DB – Yea or Nay?
Images in database vs file system

I’ve been developing a web application using RIA technologies (Flex + PHP + MySQL + Ajax) and now I’m in a dilemma about image files.

I use some images in my Flex app, so I think “it could be awesome if I store them into database, and then retrieve from it; consecuently, maintain process should be more easy”. But, here is my dilemma:

Should I store the physical URL of my images, or is going to be better if I store directly the image?

For example, should my Cars table looks like:

ID (autonumeric) | Source (text)

or like this?

ID (autonumeric) | Image (longblob or blob)

I know that here are cool people that can answer me this question, explaining me which is better and why 🙂

  • 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-27T00:55:18+00:00Added an answer on May 27, 2026 at 12:55 am

    I personally recommend to Store Images in the database. Of course it both advantages and disadvantages.

    Advantages of storing BLOB data in the database:

    • It is easier to keep the BLOB data synchronized with the remaining items in the row.
    • BLOB data is backed up with the database. Having a single storage system can ease administration.
    • BLOB data can be accessed through XML support in MySQL, which can return a base 64–encoded representation of the data in the XML stream.
    • MySQL Full Text Search (FTS) operations can be performed against columns that contain fixed or variable-length character (including Unicode) data. You can also perform FTS operations against formatted text-based data contained within image fields—for example, Microsoft Word or Microsoft Excel documents.

    Disadvantages of Storing BLOB Data in the Database:

    Carefully consider what resources might be better stored on the file system rather than in a database. Good examples are images that are typically referenced via HTTP HREF. This is because:

    • Retrieving an image from a database incurs significant overhead compared to using the file system.
    • Disk storage on database SANs is typically more expensive than storage on disks used in Web server farms.
    • 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? For ages I've been
Possible Duplicate: Storing Images in DB - Yea or Nay? i am curios about
Possible Duplicates: Storing Images in DB - Yea or Nay? Saving images in database
Possible Duplicate: Storing Images in DB - Yea or Nay? Is it faster and
Possible Duplicate: Storing Images in DB - Yea or Nay? I need to store
Possible Duplicate: Storing Images in DB - Yea or Nay? To Do or Not
Possible Duplicate: Schema for a multilanguage database I'm working on a web application that
Possible Duplicate: Which collection for storing unique strings? I am currently using a Dictionary<string,
Possible Duplicate: Encrypting/Hashing plain text passwords in database Recently, I discovered that major web
Possible Duplicate: Storing a password I am using shared preference to store password. Is

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.