Class Parts

java.lang.Object
org.apache.fineract.client.util.Parts

public final class Parts extends Object
Convenience Factory for MultipartBody.Part (including RequestBody). MultipartBody.Part is the argument of operations for binary uploads like DocumentsApiFixed.createDocument(String, Long, Part, String, String), DocumentsApiFixed.updateDocument(String, Long, Long, Part, String, String) and ImagesApi.create(String, Long, Part) and ImagesApi.update(String, Long, Part).
  • Method Details

    • fromFile

      public static okhttp3.MultipartBody.Part fromFile(File file)
    • fromBytes

      public static okhttp3.MultipartBody.Part fromBytes(String fileName, byte[] bytes)
    • fileName

      public static Optional<String> fileName(retrofit2.Response<?> response)