Solved

Where should I save uploaded files?

Posted on 2012-04-02
2
515 Views
Last Modified: 2012-04-04
I have a requirement to upload files in our asp.net app. These files have medical info about patients. I need to encrypt them or somehow protect the content.

They're mostly PDF files. What do i need to do? i worked on a sql 2000 app years ago and we
saved the documents in the database but i think it's not recommanded by MS to save docs in the database. What do I need to do?

Should I use FileStream?
0
Comment
Question by:Camillia
2 Comments
 
LVL 7

Accepted Solution

by:
micropc1 earned 250 total points
ID: 37799398
What about encrypting and storing the file on the file system, and storing the path to the encrypted file in the database?  http://support.microsoft.com/kb/307010
0
 
LVL 16

Assisted Solution

by:Easwaran Paramasivam
Easwaran Paramasivam earned 250 total points
ID: 37799469
http://support.microsoft.com/kb/323246 You can use FileUpload control of either ASP.NET or HTML control. On uploading call the SaveAs method. Specify the location where to store the file. My suggestion is have Appsetting in web.config file and specify common folder say for example <appsetting key="CommonFolder" value="C:\UploadeFiles\" /> and read the config entry in application and append the Unique file name to it. While retrieving the file please do follow the same. In later point of time you can change the folder path. Please note that the folder could be network path as well (should have Read/Write Permission).
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question