title: How to import a file from resources folder in Eclipse for Java
body: <p>I have a file in my resources folder in my project in Eclipse. I need a way in which to load this document into my Java file. Preferable representation would be in an InputStream.</p>
  
  <p>I tried the following based on some searching but it does not seem to be working and I am not sure why (I get null), any help appreciated</p>
  
  <pre><code>InputStream is = getClass().getResourceAsStream("/Project/resources/BlankPDF.pdf");
  </code></pre>