Dim PDFContent() As Byte = objCmd.ExecuteScalar objCmd.Dispose() objConn.Dispose() Response.Clear() Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf" Response.Charset = String.Empty Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache) Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName) Response.OutputStream.Write(PDFContent, 0, PDFContent.Length) Response.OutputStream.Flush() Response.OutputStream.Close() Response.End() When I send a PDF retrieved from a database, it does not cause either reader or Adobe reader. The file downloads and then the reader just shows the tap to open icon. If the file is linked to from disk it pens fine. The code to create the file is shown above.

Any ideas?

Go to the complete details ...