M
Marauderz
Quick question for opinions, I thought I read an article about this
somewhere but I can't remember where.
The question is if I was creating a file storage system for a web site that
might have a high rate of requests should I use SQL server as my storage
then use the content-disposition header to deliver the file? or should I
just use SQL to store links to the files on the server. am I right to think
that using actual files would allow my system to have better performance
since IIS would cache and stream the files properly. But if I use SQL to
store my files it'd be more secure since the file can only be accessed after
going through both forms authentication, and my own code to extract the blob
data from SQL Server itself? But performance would suffer since I have to
pull it out from the database, coerce the data into a memory stream then
only write it down the response stream.
Opinions please?
Thanks,
Marauderz.
somewhere but I can't remember where.
The question is if I was creating a file storage system for a web site that
might have a high rate of requests should I use SQL server as my storage
then use the content-disposition header to deliver the file? or should I
just use SQL to store links to the files on the server. am I right to think
that using actual files would allow my system to have better performance
since IIS would cache and stream the files properly. But if I use SQL to
store my files it'd be more secure since the file can only be accessed after
going through both forms authentication, and my own code to extract the blob
data from SQL Server itself? But performance would suffer since I have to
pull it out from the database, coerce the data into a memory stream then
only write it down the response stream.
Opinions please?
Thanks,
Marauderz.