title: Read a file from Amazon EBS
body: <p>I want to download a file from one of the EBS volumes I created on Amazon Elastic block storage. Mostly it is advisable to used <code>ServletContext#getResource()</code> and its counterpart <code>ServletContext#getResourceAsStream()</code> as well advised <a href="https://stackoverflow.com/a/2308388/932307">here</a>. </p>
  
  <p><strong>But in this case is the following code advisable</strong></p>
  
  <p><code>InputStream in = new FileInputStream(new File(FOLDER_PATH_ON_AMAZON_EBS + "/" + folder + "/" + fileName));</code></p>