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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:41:41+00:00 2026-05-12T20:41:41+00:00

Yesterday I asked the question on how I should save my files. After some

  • 0

Yesterday I asked the question on how I should save my files.
After some research I’ve desided to go with storing the files “in” the database.

I’ve checked the difference between storing the files using filestream and storing the files in the database itself.

Each has it’s advantages and disadvantages. To help me with my research this site helped me out a lot:
http://www.codeproject.com/KB/database/SqlFileStream.aspx

So basically it says that saving the files using filestream is better if the files are bigger than 1mb.

But I’ve discovered another problem with filestreaming. If you delete a record in the database the file still exists on the filesystem.

Therefore I need you guys opinion.
What to use? Filestream or saving the files in the database using VARBINARY?

Grtz,
M.

  • 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-12T20:41:41+00:00Added an answer on May 12, 2026 at 8:41 pm

    The data on the filesystem will (should) be removed soon after you delete the data from the database, though this is done in a separate system background thread, so it may remain on the filesystem until basically the garbage collector runs again. However, all results accessed through any of the filestream APIs (i.e. tsql or streaming) will be guaranteed to not access anything that has been removed, whether or not the filesystem data still resides on disk (ACID is ensured with filestream).

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

Sidebar

Related Questions

One of the responses to a question I asked yesterday suggested that I should
Yesterday, I asked this question and never really got an answer I was really
This question is related to another question which I asked yesterday! List all links
While looking at a micro-optimization question that I asked yesterday ( here ), I
I had telephone interview question yesterday. The interviewer asked me if I had faced
I asked a related question on this yesterday, and was told what not to
Yesterday I asked this question . Rubens Farias answered it by pointing to this
yesterday I just asked following question. How to customize tableView Section View - iPhone
Yesterday I asked about serving byte ranges from PHP. Today my question is -
This question follows on from a question I asked yesterday about why using the

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.