473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Storage- Asp.NET app

Hi,

Is it better to store files in Database or to store on Hard Disk /network ?

On a Web application using .NET...
Aug 3 '06 #1
4 1351
Are you talking about attachements. I don't see any benefit of storing them
into the database other than
1) a central location
2) security from careless viewing of content
3) reduce dependencies

typically what I do is create records in database tables that refer to the
attachements and folders and physically store the files in a File Share. I
store about 5000 files per folder, that way I don't have to worry about too
many files in one folder. That ssaid you will have to maintain the path and
along with the FileName in the database.

Do you have an estimate on the amount of files you are expecting.

Regards,

Trevor Benedict R
MCSD

"SSUK" <SS**@newsgroups.nospamwrote in message
news:A7**********************************@microsof t.com...
Hi,

Is it better to store files in Database or to store on Hard Disk /network
?

On a Web application using .NET...

Aug 3 '06 #2
If programming was that easy, we wouldn't have jobs.

"Better" is relative. It all depends on the type, size, quantity, security
implications, etc etc etc. On the balance, it will be much easier to store
the files on disk than in a database, imho. If you're fresh to the scene, go
that route.

"SSUK" wrote:
Hi,

Is it better to store files in Database or to store on Hard Disk /network ?

On a Web application using .NET...
Aug 3 '06 #3
Hello SSUK,

I agree that it's hard to say which one is absolutely superior to the
other. You need to estimate the performance of disk I/O accessing and
database accessing on your server machine. Based on my experience, for
server-side application such as ASP.NET web application(which may suffer
high volume concurrent requests), disk I/O access is quite expense and we
should avoid large number of concurent disk I/O processing. Using database
as storage can take advantage of those querying and maintenance features in
the DBMS, one drawback of database storage is that we need to rely on the
DBMS interface to transfer or backup data since all the files are storaged
as binary data into DB storage.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 4 '06 #4
Thanks for your responses.
"Trevor Benedict R" wrote:
Are you talking about attachements. I don't see any benefit of storing them
into the database other than
1) a central location
2) security from careless viewing of content
3) reduce dependencies

typically what I do is create records in database tables that refer to the
attachements and folders and physically store the files in a File Share. I
store about 5000 files per folder, that way I don't have to worry about too
many files in one folder. That ssaid you will have to maintain the path and
along with the FileName in the database.

Do you have an estimate on the amount of files you are expecting.

Regards,

Trevor Benedict R
MCSD

"SSUK" <SS**@newsgroups.nospamwrote in message
news:A7**********************************@microsof t.com...
Hi,

Is it better to store files in Database or to store on Hard Disk /network
?

On a Web application using .NET...


Aug 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2953
by: Francis Bell | last post by:
Hello, I'm trying to read data from a file and then insert that into a linked list. The way I have it, the program compiles, however, I'm getting a segmentation fault error message when I run...
9
8265
by: ALI-R | last post by:
Hi,, I have two questions : 1) Is it mandatory that config file of a desktop application must be App.config 2) Is it possible to update config file in your code?? thanks for your help. ALI
3
5737
by: Fred | last post by:
Hi, I want to be able to read and write to the custom properties of any Office type file. In Windows explorer I can do this manually by right clicking on a file selecting 'properties' from the...
4
2630
by: Richard Lewis Haggard | last post by:
I have an application that can't use the registry to save various user options and application settings. My first thought was to simply use an application configuration file but this approach seems...
2
5117
by: pmlane2001 | last post by:
I have a PHP SOAP XML file size problem that I was wondering if anyone has seen before. I have an XML file that when I put it through my PHP script with 270 lines (13,082 KB) it works fine. If I...
1
2666
by: =?Utf-8?B?c3Vpcw==?= | last post by:
Hi every body, i have a problem with how to read .MSG file (Outlook) using vb.net ? using this articles the author has already explain how to read .MSG file using stuctured storage (vc++) ...
10
1562
by: Redhairs | last post by:
In a web farm environment, how to store the user uploading files for future access? Store them in db, local file system or centralized file server? If trying to storing the file in local file...
8
2597
by: zaheer031 | last post by:
I am using the following code typedef struct A { int x; int y; int z; }; int main(void) {
3
2391
by: Laura | last post by:
Hi: ¿How can I read a file on the client side without loading it to the server?
6
1269
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I'm trying to download a binary ZIP file using HTTP. Following an example in MSDN and other sources, my code is: WebClient client = new WebClient();...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.