title: Servlet : try to read pdf file using servlet in eclipse
body: <p>i am try to read the file using ServletContext `</p>
  
  <pre><code>InputStream is = servletContext.getResourceAsStream(path)
  </code></pre>
  
  <p>the value of path is : </p>
  
  <pre><code>path = D:\Assignments\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\HelpGuide\GeneratedReports\userDetail.pdf`
  </code></pre>
  
  <p>the <code>userDetail.pdf</code> file is exist in given path , but when i try to get the resource as stream using servlet context define as above , the value of <code>is</code> is null .</p>