I'm trying to post JSONObject with one image which is taken by camera run time. 
how to post an Image using retrofit in android.
This is my Interface
 @Multipart
@POST("/upload")
Call<Response> getDetails(@Part("empsno") String  empsno,
                                @Part("time")String deliveryTime,
                                @Part("uploadFile") MultipartBody.Part part,
                                @Part("remarks")String remarks,
                                @Part("receiver")String receivedBy,
                                @Part("Address")String ipAddress
                                );
code i used to upload image with other details
 JSONObject oJSONObject = new JSONObject();
        oJSONObject.put("empsno", strEmpsno);
        oJSONObject.put("time", strtime);
        oJSONObject.put("remarks", strRemarks);
        oJSONObject.put("receiver", strReceiver);
        oJSONObject.put("Address", straddress);
        oJSONObject.put("uploadFile", imageFolderPath + "/" + imageName);
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
MultipartBody.Part body = MultipartBody.Part.createFormData("uploadFile", file.getName(), requestFile);
xInterface interface = retrofit.create(xInterface.class);
Call<Response> podResponsecall = interface.getDetails(strEmpsno, strtime,
                body, strRemarks, strReceiver, straddress);
  podResponsecall.enqueue(new Callback<Response>() {
            @Override
            public void onResponse(Response<Response> response) {
                String val = response.body() + "";
                Log.e(TAG, "onResponse: " + val);
            }
            @Override
            public void onFailure(Throwable t) {
                Log.e(TAG, "onFailure: " + t.getLocalizedMessage());
            }
        });
Output - onFailure: JSON must start with an array or an object.
I don't know weather this is right or wrong. Please help me to post some images as well as other details using Retrofit2 beta 3.
 
     
     
    