JAVA 82
Untitled By Guest on 12th March 2018 04:50:58 AM
  1.     private RequestBody createUploadImageBody() {
  2.         RequestBody requestBody;
  3.  
  4.         File imageFile = ImagePicker.loadImageFromStorage(application);
  5.         requestBody = new MultipartBody.Builder()
  6.                 .setType(MultipartBody.FORM)
  7.                 .addPart(RequestBody.create(MediaType.parse(IMAGE_TYPE),
  8.                         imageFile))
  9.                 .build();
  10.  
  11.         return requestBody;
  12.     }

Paste is for source code and general debugging text.

Login or Register to delete or keep track of your pastes.