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?
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?