0

I have a situation where I am trying to retrieve a PDF file that has been saved as a binary file on the database. I can get the file and send it back through the browser to allow the client to download or open the PDF, but what I need to do is get the file and write it back to the file system on the server.

Can anyone point me to an article, or maybe the methods I would need to use to do something like this?

I have tried various code elements around filestreams and such.

  • 1
    This may help : [link](http://www.aspsnippets.com/Articles/Save-and-Retrieve-Files-from-SQL-Server-Database-using-ASPNet.aspx) focus on "Retrieving the File from Database" – Malav Shah May 26 '16 at 01:36
  • Which RDBMS is this for? Please add a tag to specify whether you're using `mysql`, `postgresql`, `sql-server`, `oracle` or `db2` - or something else entirely. – marc_s May 26 '16 at 04:47
  • Thanks Marc, I did add a tag, I am working with SQL Server, the Microsoft product. Malav, I found that link and tried what it was suggesting, there were a few problems with the code on that page, and the code created a download to the client computer, unless I am overlooking something here. – Vern Green May 26 '16 at 14:07

0 Answers0