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 6746453
In Process

The Archive Base Latest Questions

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

I am developing a site which handles user input resulting in a graphical jpg

  • 0

I am developing a site which handles user input resulting in a graphical jpg image drawn using the GDI+ library. For better performance I only generate these images once, then save them to disk. For later reference I fetch the location from the database. Each user input results in three images (thumbnail, zoomed and one for the pdf-report), all in all about 60kb. We expect to have 100 – 1000 of these input a day.

I am now considering saving the images in the database (BLOB fields – I’m using MySql) and create a ashx handler page to display the images. The primary reason would be to make it easier to move the site from one server to another (not having to worry about read/write -rights on the servers file-system and not having to worry about broken links between db and file).

Would this change be advisable in my scenario? Would it have any significant positive or negative change in performance?

  • 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-26T12:19:29+00:00Added an answer on May 26, 2026 at 12:19 pm

    The impact on performance depends on your DB setup regarding HW (RAM, SSD etc.) and network (is it on the same machine as the app?).

    Usually I recommend sticking to the file system because in my experience those files tend to get big sometimes (which would degrade the performance of the DB!) and the filesystem is better optimized to handle files than any DB.

    OTOH if you are pretty sure about the sizes (max. 60 KB) AND your DB is sufficiently fast then go for it… make sure to put the BLOBs into a separate table with only other field (primary key), don’t keep any metadata etc. in the same table as the BLOBs!

    One remark though:

    I always recommend to make a thorough performance test (simulate users/load, use a profiler etc.) before deciding on such a change… create 2 versions of the ASHX handler – one that uses the DB only for the path and delivers the files from the filesystem and the second one does all via DB…

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

Sidebar

Related Questions

I'm developing a site using the CakePHP framework. I have a form which shows
I'm currently developing a large site that handles user registrations. A social networking website
I'm developing a site using Wordpress which uses Categories for main sections with sub
I'm developing a plone4 site on which every user have a sortable inventory of
I am developing site using codeigniter.I have a form which contains add button and
I'm in the process of developing a site that handles user accounts in the
I'm developing a CakePHP site for which I've just enabled VAS authentication using a
I am using Mootools extensively for a site which I am developing. But recently
I'm developing a site which has urls like this: site.com/james site.com/james/photos Schema for this
I'm developing an international site which uses UTF8 to display non english characters. I'm

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.