private void downloadpdf(byte[] pdf) { Byte[] bytes = pdf; Response.Clear(); MemoryStream ms = new MemoryStream(bytes); Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=test.pdf"); Response.Buffer = true; ms.WriteTo(Response.OutputStream); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)