title: Upload Download File Visual Studio
body: <p>I have created a website using Visual Studio C#, with different functionalities for students and teachers. The only thing remaining is that I wish to create two more pages, one in the teacher folder, and other on the student folder (access is dependant on roles).</p>
  
  <p>The page on the teacher side uploads a file (in any format) to a database. This I believe will be stored in a table in the form of varbinary. And the page on student side provides  a link to download the desired file. I have been through a lot of different web pages now, but can't seem to achieve any solution to it. Please can someone tell me how to do it??</p>
  
  <p>I believe that uploading is easier. All I need to do is implement a FileUpload control and using a query I can store that the data in a table. </p>
  
  <p>But what about downloading? I saw an example which used HttpHandlers, but that was for displaying images in the browser. I want to upload files in other format and then download the same on the computer (that is the student would be able to download it)</p>