This code does not write files to the hard drive.
Response.AddHeader("Content-Type", "application/pdf"); Response.AddHeader("Content-Length", base64Result.Length.ToString()); Response.AddHeader("Content-Disposition", "inline;"); Response.AddHeader("Cache-Control", "private, max-age=0, must-revalidate"); Response.AddHeader("Pragma", "public"); Response.BinaryWrite(Convert.FromBase64String(base64Result));
Note: the base64Result variable contains base64Result Base64: "JVBERi0xLjMgCiXi48 / TIAoxI ..."
Synap sen
source share