string path = dict["FileName"].ToString(); 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); } Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)