title: Return tiff file from outputstream on JSP
body: <p>I am using a JSP to display a single TIFF file.  The flow is as follows:</p>
  
  <ol>
  <li>I am given a PDF to convert to a TIFF.</li>
  <li>I feed a 'black box' API the PDF in the form of a File object and an OutputStream (I am currently using a ByteArrayOutputStream but that can change as needed.</li>
  <li>The 'black box' converts the PDF to a TIFF and saves the result to the OutputStream.</li>
  <li>I use out.println(outputstream) to spit out the TIFF.</li>
  </ol>
  
  <p>The problem is that I am getting a text stream instead of a displayed image.  I have used the following head/meta tag:</p>
  
  <pre><code>    &lt;head&gt;&lt;title&gt;PDF to TIFF tester&lt;/title&gt;
    &lt;META HTTP-EQUIV="Content-Script-Type" CONTENT="image/tiff"&gt;&lt;/head&gt;
    &lt;body&gt;
  </code></pre>
  
  <p>But that does not change the end result.  Any help?</p>