title: How to read a zip file from remote URL using spring resource?
body: <p>I'd like to use a zip file from remote URL inmemory only, using spring <code>Resource</code> class:</p>
  
  <pre><code>UrlResource url = new UrlResource("https://path.to.TheFile.zip");
  System.out.println(url.getFile().lastModified()); //=0, so probably it did not work
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Caused by: java.io.FileNotFoundException: https://path.to.TheFile.zip (The syntax for the filename, directory or media is invalid)
      at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_51]
      at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:215) ~[?:1.7.0_51]
      at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:145) ~[?:1.7.0_51]
      at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:159) ~[?:1.7.0_51]
  </code></pre>
  
  <p>What might be wrong here?</p>
  
  <p>I cannot use <code>url.getInputStream()</code> as I cannot pass the IS into a ZipFile:
  <code>ZipFile(url.getInputStream()) //error</code></p>