title: How to get the InputStream of a file that has an absolute path and add it to a StreamedContent object in order to use it in a p:fileDownload?
body: <p>I have a <code>pdf</code> in <code>C:/Reports/report.pdf</code> and I need to download it using primefaces. As I have read I need to first get the InputStream of the file and use <code>DefaultStreamedContent</code> to get the <code>StreamedContent</code> but everything I tried failed.</p>
  
  <p>Help me please it is supposed to be easy and have had lots of problems with this.</p>
  
  <p>The info <a href="http://www.primefaces.org/showcase/ui/file/download.xhtml" rel="nofollow">here</a> uses the /resources/ web directory. I need to do that with the absolute path of the file.</p>