title: android How to post ByteArray using Retrofit library ?
body: <pre><code>public interface UploadImageService {
  
  //send an image with params with Post
  @Multipart
  @POST("/image/upload_image.php")
  void setUserImage(
          @QueryMap Map&lt;String, String&gt; params,
          @Part("pathImage") TypedFile file,          
          Callback&lt;JsonElement&gt; response);
  </code></pre>
  
  <p>}</p>
  
  <p>I am using this code to post Bytearray of Bitmap , but unable to get success. Which is the best way to post Camera captured images to php server.</p>