Last post May 02, 2012 05:33 AM by roopeshreddy
Member
38 Points
155 Posts
May 01, 2012 11:21 AM|User Name|LINK
Hi,
I have a byte array in the database and i need to show that in a pdf file format. Here is the way i did that. However, this doesn't work on Android tablets(checked in 2.3.5 and 3.2).
Response.Clear(); Response.ContentType = "application/octet-stream"; Response.BufferOutput = true; Response.Buffer = false; Response.AddHeader("Content-Length", binaryData.Length.ToString()); Response.AppendHeader("Content-Disposition", "inline;filename=ClientDocument.PDF"); // Response.BinaryWrite(binaryData); Response.OutputStream.Write(binaryData, 0, binaryData.Length); Response.End();
Can you guys think of any way i could make it work on all the browsers?
Appreciate the help
Thanks
Star
14065 Points
3270 Posts
May 02, 2012 05:33 AM|roopeshreddy|LINK
Why don't you create a PDF file at server, and push that file to the device browser!
Hope it helps u...
Member
38 Points
155 Posts
Response BinaryWrite not working on Android browser
May 01, 2012 11:21 AM|User Name|LINK
Hi,
I have a byte array in the database and i need to show that in a pdf file format. Here is the way i did that. However, this doesn't work on Android tablets(checked in 2.3.5 and 3.2).
Can you guys think of any way i could make it work on all the browsers?
Appreciate the help
Thanks
Star
14065 Points
3270 Posts
Re: Response BinaryWrite not working on Android browser
May 02, 2012 05:33 AM|roopeshreddy|LINK
Hi,
Why don't you create a PDF file at server, and push that file to the device browser!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space