Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Word doc from SQL Server image column

Status
Not open for further replies.

redaccess

MIS
Aug 2, 2001
110
0
0
US
I'm trying to open an MS Word document that is stored in a sql server db. I can open it successfully within IE using:

Response.ContentType = selectFile.FileType.ToString();
Response.BinaryWrite((byte[])selectFile.FileContents);

but I want it to open the file using Word.

The "selectFile.FileContents" is an image type and the "selectFile.FileType" is varchar and stores the type of file it is.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top