How to ulpoad image file in Retrofit

I have declared the interface. @POST(“user/create”) Call<ModelsRegister> modelsRegisterCall(@Part MultipartBody.Part photo , @Body ModelsRegister modelsRegister); this is the Class RegisterActivity that I want send the datas. router = conexion.getApiService(); super.onActivityResult(requestCode, resultCode, data); if(resultCode == RESULT_OK && requestCode == REQUESCODE){ pickUri = data.getData(); user_Img.setImageURI(pickUri); String photo = pickUri.toString(); File file = new File(photo); RequestBody reques = RequestBody.create(MediaType.parse(“multipart/form-data”),file);…

Details