S
Satya
I am trying to display a PDF file (which I am being passed from a web
service as a binary stream) in a browser, but I am being prompted to
save the file instead. I don't want the user to be prompted; I just
want the PDF to be displayed. Here is the code:
Byte binaryData;
binarydata = GetDataHere();
Response.ContentType = "application/pdf";
Response.BinaryWrite(binaryData);
Response.End()
Note: I am using window.open()(java script) to open the PDF in new
window.
I'm using ASP.NET.
Thanks in advance.
Satya.
service as a binary stream) in a browser, but I am being prompted to
save the file instead. I don't want the user to be prompted; I just
want the PDF to be displayed. Here is the code:
Byte binaryData;
binarydata = GetDataHere();
Response.ContentType = "application/pdf";
Response.BinaryWrite(binaryData);
Response.End()
Note: I am using window.open()(java script) to open the PDF in new
window.
I'm using ASP.NET.
Thanks in advance.
Satya.