so I have this site in asp.net, which allows user to upload and save their important files to server, which on demand of user (when user logins and views his files and clicks on one of his file) are allowed to be downloaded to clients computer.
Also, the size of file allowed to save is less then 25Mb (at least for now!), the files can be only any type, including but not limited to .txt, .rtf, .pdf, .doc, .docx, .jpg, .png etc.
So, the question is where should I store the files considering the best performance, should I store files in SQL Server (using SQL server 2008 just so you know, visual studio 2008 sp1) in a column (in BLOB format possibly?) or should I store them in HDD of server.
Also, considering the max size, say, even if 10 users uploaded files of, say 20Mb, this would occupy 200Mb of storage! If anyone can tell, how much would this cause to increment in size of database if these file were stored in database?
I mean how much space requirement would grow in database relative to storage in file system, also which would be better in performance?
so I have this site in asp.net, which allows user to upload and save
Share
See this Microsoft paper: To Blob or not
IMHO – there are lots of benefits and drawbacks in both methods – to store files in DB and to store them in FS
BUT for sql server 2008 there is an another option – to store files in FileSYstem as part of DB, see FILESTREAM overview