title: Android: Get file path while uploading image file as multi-part file using Ion Koush library
body: <p>I am picking an image via the following intent:</p>
  
  <pre><code>Intent getIntent = new Intent(Intent.ACTION_GET_CONTENT);
  getIntent.setType("image/*");
  
  Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
  pickIntent.setType("image/*");
  
  Intent chooserIntent = Intent.createChooser(getIntent, "Select Image");
  chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});
  
  startActivityForResult(chooserIntent, PICK_IMAGE);
  </code></pre>
  
  <p>I'm retrieving the intent by overriding the onActivityResult</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data)
  {
      if (requestCode == PICK_IMAGE) {
          Uri imageUri = data.getData();
          ProfileCalls.editProfileImage(imageUri, getContext()); //Ion post data
      }
  }
  </code></pre>
  
  <p>I am then trying to get the path of the image in the following way which is throwing the following exception
  <code>java.io.FileNotFoundException: /external/images/media/5302 (No such file or directory)</code></p>
  
  <pre><code>public static void editProfileImage(Uri profileImageUri, final Context context) {
      Ion.with(context)
              .load("url")
              .setMultipartFile("profileImage", "application/json; charset=UTF-8", new File(profileImageUri.getPath()))
              .asJsonObject()
              .setCallback(new FutureCallback&lt;JsonObject&gt;() {
                  @Override
                  public void onCompleted(Exception e, JsonObject result) {
                      System.out.print(e);
                      System.out.print(result);
                  }
              });
  }
  </code></pre>