If you have a PDF in memory, use one of the Stream objects to split it into a byte array (possibly using the .ToArray () function of the MemoryStream class). In this example below, an array of bytes is called data:
Response.ContentType = "Application/pdf";
Response.OutputStream.Write(data, 0, data.Length);
: , , , PDF . , , PDF -. , , embed, . , PDF ,
<embed id="Embed1" src='<%# pdfLocation() %>' runat="server" name="pdfLoad"></embed>
pdfLocation PDF.