Solved

Where should I save uploaded files?

Posted on 2012-04-02
2
513 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now