S
Stan SR
Hi,
I call a web service method that returns an array of bytes.
This array is a PDF document and I would like to display this array as pdf
document within the browser.
So I wrote this code, but I don't get my pdf
byte[] myPDF = myWebService.GetDocument(pdfID);
Response.Clear();
Response.ContentType = "Application/pdf";
Response.AddHeader("Content-Type", "application/pdf");
Response.AddHeader("Content-Disposition",
"inline;filename=mydoc.pdf");
Response.BinaryWrite(myPDF);
Response.End();
Any help ?
Stan
I call a web service method that returns an array of bytes.
This array is a PDF document and I would like to display this array as pdf
document within the browser.
So I wrote this code, but I don't get my pdf
byte[] myPDF = myWebService.GetDocument(pdfID);
Response.Clear();
Response.ContentType = "Application/pdf";
Response.AddHeader("Content-Type", "application/pdf");
Response.AddHeader("Content-Disposition",
"inline;filename=mydoc.pdf");
Response.BinaryWrite(myPDF);
Response.End();
Any help ?
Stan