I am trying to upload an image on \"https://api.cloudsightapi.com/image_requests\" but after request call i am getting all the fields null into response .i.e status,nam
Upload image file like this:
File file = // initialize file here
MultipartBody.Part filePart = MultipartBody.Part.createFormData("file", file.getName(), RequestBody.create(MediaType.parse("image/*"), file));
Call call = api.uploadPhoto(filePart);//u can send other parameters along with the filePart depending upon ur method signature