public static BoxFileUploadRequestObject uploadFileRequestObject(final String parentId, final String fileName, final InputStream inputStream)
throws BoxRestException, BoxJSONException {
try {
return (new BoxFileUploadRequestObject()).setMultipartMIME(getNewFileMultipartEntity(parentId, inputStream, fileName));
} catch (UnsupportedEncodingException e) {
throw new BoxRestException(e);
}
}