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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:05:34+00:00 2026-05-27T18:05:34+00:00

We are designing a .NET application, that stores and search a large amount of

  • 0

We are designing a .NET application, that stores and search a large amount of images (>100.000).

When we upload an image, we need to create a thumbnail and store the original image and the thumbnail in the DB (SQL Server 2008 R2).

I’ve read that the best way to store images is using FILESTREAM

http://msdn.microsoft.com/en-us/library/cc949109.aspx

but when the images are smaller this is ineficient.

Is a good idea to store images and thumbnails using filestream? There is better alternative?

  • 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-27T18:05:35+00:00Added an answer on May 27, 2026 at 6:05 pm

    There’s a really good paper by Microsoft Research called To Blob or Not To Blob that discusses this topic in depth.

    Their conclusion after a large number of performance tests and analysis is this:

    • if your pictures or document are typically below 256K in size, storing them in a database VARBINARY column is more efficient

    • if your pictures or document are typically over 1 MB in size, storing them in the filesystem is more efficient (and with SQL Server 2008’s FILESTREAM attribute, they’re still under transactional control and part of the database)

    • in between those two, it’s a bit of a toss-up depending on your use

    If you decide to put your pictures into a SQL Server table, I would strongly recommend using a separate table for storing those pictures – do not store the employee foto in the employee table – keep them in a separate table. That way, the Employee table can stay lean and mean and very efficient, assuming you don’t always need to select the employee foto, too, as part of your queries.

    For filegroups, check out Files and Filegroup Architecture for an intro. Basically, you would either create your database with a separate filegroup for large data structures right from the beginning, or add an additional filegroup later. Let’s call it “LARGE_DATA”.

    Now, whenever you have a new table to create which needs to store VARCHAR(MAX) or VARBINARY(MAX) columns, you can specify this file group for the large data:

     CREATE TABLE dbo.YourTable
         (....... define the fields here ......)
         ON Data                   -- the basic "Data" filegroup for the regular data
         TEXTIMAGE_ON LARGE_DATA   -- the filegroup for large chunks of data
    

    Check out the MSDN intro on filegroups, and play around with it!

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

Sidebar

Related Questions

I'm in a process of designing a multi-tier ASP.NET web application that is supposed
I am re-designing an application for a ASP.NET CMS that I really don't like.
I'm designing forms in my ASP.NET MVC application that will receive objects. Here's what
I am working on an asp.net application. I need help designing the database related
I'm designing an ASP.NET application that must support 'SubSites'. The idea is to have
We are designing a .net web application that has an external and internal site.
I'm designing an ASP.NET 4.0 Web application where administrators may create an auction with
We are designing asp.net web application in wcsf. Web application will be deployed to
When designing a ASP.net WebForm application what are some important steps to take (or
I'm designing a Data Access layer for an C#/ASP.net application and I have a

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.