Wednesday, March 21, 2012

open the uploaded documents

Hi,

I have the requirements to add the attachment, so i am saving the documents in sqlserver.

now i am facing the problem with openning the document.

can any body suggest me how to open the documents which are stored in sql server

Try this:

byte[] file = table.row.fileField;

Response.AddHeader(

"Content-Disposition","inline; filename=\"nameOfTheFile");

Response.BinaryWrite(file);

Response.End

|||

Try this:

byte[] file = table.row.fileField;

Response.AddHeader(

"Content-Disposition","inline; filename=\"nameOfTheFile");

Response.BinaryWrite(file);

Response.End

|||

Try this:

byte[] file = table.row.fileField;

Response.AddHeader(

"Content-Disposition","inline; filename=\"nameOfTheFile");

Response.BinaryWrite(file);

Response.End

|||

Try this:

byte[] file = table.row.fileField;

Response.AddHeader(

"Content-Disposition","inline; filename=\"nameOfTheFile");

Response.BinaryWrite(file);

Response.End

No comments:

Post a Comment