Solved

Where should I save uploaded files?

Posted on 2012-04-02
2
517 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Suggested Solutions

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

761 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