Posted on: 5/28/2015 10:28:54 PM | Views : 672

hi,I have an aspx application that receives a pdf file from a webservice, actually I show the pdf on the navigator with this code 
file = client_get.getPolicy(data) Response.BufferOutput = False ' to prevent buffering Dim buffer As Byte() = New Byte(6499) {} Dim bytesRead As Integer = 0 HttpContext.Current.Response.Clear() HttpContext.Current.Response.ClearHeaders() HttpContext.Current.Response.ContentType = "application/octet-stream" HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + desc + "-" + policy + "." + data.fileExtension) bytesRead = file.FileByteStream.Read(buffer, 0, buffer.Length) While bytesRead > 0 ' Verify that the client is connected. If ...

Go to the complete details ...