Posted on: 2/26/2011 1:25:23 PM | Views : 302

Hi Gurus,
 
I can't open "ONE" page of .pdf file using IE8 when retrieved from SQL Server 2008, but more than one page I can.
With Chrome I can open any number of .pdf pages.
The same page that I can't open it using IE8 from DB, can be opened if I opened it from hard disk using IE8.
My code in .asxh file:
 
context.Response.ContentType = "application/pdf" Dim strm As Stream = ShowNewsImage(imgName) If Not strm Is Nothing Then Dim buffer As Byte() = New Byte(4095) {} Dim byteSeq As Integer = strm.Read(Buffer, 0, 4096) Do While byteSeq > 0 context.Response.OutputStream.Write(buffer, 0, byteSeq) byteSeq = strm.Read(Buffer, 0, 4096) Loop context.Response.BinaryWrite(buffer) End If  
Thanks,
Ahmed.
 
...

Go to the complete details ...