title: How to send byte[] as pdf to browser in java web application?
body: <p>In action method (JSF) i have something like below:</p>
  
  <pre><code>public String getFile() {
    byte[] pdfData = ...
    // how to return byte[] as file to web browser user ?
  }
  </code></pre>
  
  <p>How to send byte[] as pdf to browser ?</p>