Display byte array as PDF in browser with print button?
<p>I am working on an application where I have to display PDF on browser. I am getting PDF byte array from third party via webAPI. One of the way i found out to display  pdf is as below.</p>

<pre><code>var pdfAsDataUri = "data:application/pdf;base64,"+byteArray;
window.open(pdfAsDataUri);
</code></pre>

<p>I don't like this approach because it displays base64 encoded format in URL, is there any other way to convert byte array into PDF and display in on HTML page along with the print dialog (<code>window.print()</code>).</p>