flowable/flowable-engine · error · FlowableException
Error while reading uploaded file
Error message
Error while reading uploaded file: ${e.getMessage()} What it means
I/O failure in UserPictureResource.updateUserPicture: reading the uploaded multipart file's InputStream threw an exception while copying the picture bytes; the original exception message is interpolated. Indicates a client upload interruption or stream/IO problem.
Solutions
- Check the uploaded file is complete and readable
- Inspect the wrapped cause for the underlying IO error
- Retry the upload
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at modules/flowable-rest/src/main/java/org/flowable/rest/service/api/identity/UserPictureResource.java:124 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of flowable/flowable-engine@d6d39ce1c6 (2026-09-11).
Data as JSON: /api/errors/262a765a1ae426d0.
Report an issue: GitHub.
Appendix: source
Thrown at modules/flowable-rest/src/main/java/org/flowable/rest/service/api/identity/UserPictureResource.java:124
if (multipartRequest.getFileMap().size() == 0) {
throw new FlowableIllegalArgumentException("Multipart request with file content is required");
}
MultipartFile file = multipartRequest.getFileMap().values().iterator().next();
try {
String mimeType = file.getContentType();
int size = ((Long) file.getSize()).intValue();
// Copy file-body in a bytearray as the engine requires this
ByteArrayOutputStream bytesOutput = new ByteArrayOutputStream(size);
IOUtils.copy(file.getInputStream(), bytesOutput);
Picture newPicture = new Picture(bytesOutput.toByteArray(), mimeType);
identityService.setUserPicture(user.getId(), newPicture);
} catch (Exception e) {
throw new FlowableException("Error while reading uploaded file: " + e.getMessage(), e);
}
}
}
View on GitHub (pinned to d6d39ce1c6)