private void ReadPdfFile() { string path = "11.pdf"; WebClient client = new WebClient(); Byte[] buffer = client.DownloadData(path); if (buffer != null) { Response.ContentType = "application/pdf"; Response.AddHeader("content-length",buffer.Length.ToString()); Response.BinaryWrite(buffer); } }