string fileName=this.Controller.Model.SessionDataContext.FileAttachmentRowData.PhysicalFileName; byte[] array = this.Controller.Model.SessionDataContext.FileAttachmentRowData.FileContents; Response.Clear(); Response.Buffer = true; Response.AddHeader("Content-disposition", "attachment; filename=" + fileName); Response.AddHeader("Content-Length", array.Length.ToString()); Response.ContentType = "application/pdf"; Response.OutputStream.Write(array, 0, array.Length); Response.Flush(); Response.Clear();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)