Solved

Where should I save uploaded files?

Posted on 2012-04-02
2
512 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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

15 Experts available now in Live!

Get 1:1 Help Now