title: How can i render PDF which is saved in database as binary data using jQuery?
body: <p>I am working on an HTML website. PDF file is saved in database (MS SQL Server 2008 R2) as binary data. This need to be fetched and displayed in a webpage using jQuery. I tried using object tag in HTML. But PDF is not getting displayed.</p>
  
  <p>Can we convert binary data to pdf format using jQuery/javaScript?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#pdf-container').html('&lt;object type="application/pdf" src="sample.pdf"&gt;&lt;/object&gt;');</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="pdf-container" /&gt;</code></pre>
  </div>
  </div>
  </p>