This is a migrated thread and some comments may be shown as answers.

Reconstruct the file thst is fetched from DB

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepika
Top achievements
Rank 1
Deepika asked on 26 Feb 2012, 04:16 AM
Hi,
I have a word file saved in Database in a VarBinary Column (SQL 2008 server). I want to reconstruct this file for download on a button click. Please suggest how can I achieve this.
Thanks and Regards,
Deepika Karanth

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 27 Feb 2012, 11:12 PM
Deepika:

You can use the solution provided in this thread: Retrieve stored Word, PDF or Excel binary file from SQL Server 2008 database by setting the context.Response.ContentType = "application/vnd.ms-word";

Hope this helps!
Tags
General Discussions
Asked by
Deepika
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or