title: Is there any solution to pass image getting from url in multipart body
body: <pre><code>path="https://www.example.com/sample.png"
  
  File file = new File(path);
  
  
  RequestBody requestBody = RequestBody.create(MediaType.parse("image/*"), file);
  MultipartBody.Part body = MultipartBody.Part.createFormData("photo", file.getName(), requestBody);
  </code></pre>
  
  <p>This gives me error No such file or directory</p>
  
  <p>I have image url and wanted to pass image in multipart</p>