title: Android | Get file (.zip) and save it
body: <p>In my app, I would to open a (.zip) file from my external storage and save it in internal app storage.</p>
  
  <p>To open file, I use:</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setType("*/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);
  startActivityForResult(Intent.createChooser(intent, "Select"), requestCode);
  </code></pre>
  
  <p>Than, I try to use it with:</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode == 7 &amp;&amp; resultCode == Activity.RESULT_OK &amp;&amp; null != data) {
          Log.d("IMPORT","Start Process");
          Uri uri = data.getData();
          File file = new File(uri.getPath());
          String path = file.getAbsolutePath();
          //some function
  
          //error:
          InputStream is = new FileInputStream(path);
      }
  }
  </code></pre>
  
  <p>Now, with function <code>InputStream is = new FileInputStream(path);</code> I return <code>java.io.FileNotFoundException: /document/primary:Download/example/file.zip: open failed: ENOENT (No such file or directory)</code>.</p>
  
  <p>I've not problems when I save the images, but I never saved a zip file.</p>