How to Upload Image file in Retrofit 2
问题 I have an image of postman like below. How to do the same thing in Retrofit 2. I\'ve declared the interface like this. @Multipart @POST(\"/api/Pharmarcy/UploadImage\") Call<ResponseBody> uploadPrescriptionImage( @Query(\"accessToken\") String token, @Query(\"pharmarcyRequestId\") int pharmacyRequestedId, @Part MultipartBody.Part image); 回答1: @Multipart @POST("user/updateprofile") Observable<ResponseBody> updateProfile(@Part("user_id") RequestBody id, @Part("full_name") RequestBody fullName,