title: Convert InputStream into FileInputStream
body: <p>I have read this post <a href="https://stackoverflow.com/questions/2353057/how-to-convert-inputstream-to-fileinputstream">How to convert InputStream to FileInputStream</a> on converting a InputStream into a FileInputStream. However, the answer does not work if you are using a resource that is in a jar file. Is there another way to do it.</p>
  
  <p>I need to do this to get the <code>FileChannel</code> from a call to 
  <code>Object.class.getResourceAsStream(resourceName);</code></p>