Skip to content

Limitation on byte size (inputstream) #34

@01l01

Description

@01l01

Hello,
I am trying to pass an inputstream to Param() but i am always getting : "expected 1024 bytes but received 8192".
Here how i am trying to use:

try (InputStream inputStream = fileData.getBody(InputStream.class)) {
String documentId = documentService.compressDocument( owner, titleString, new Origin(OriginType.WIDERSPRUCH, caseId), fileData.getFileName(), fileData.getMediaType().getType() + "/" + fileData.getMediaType().getSubtype(), inputStream, documentType);
return Response.ok(new Success(documentId)).build();
}
Here i am receiving the file as inputPart then i am converting it to inputstream, then i am passing these parameters to convert function like the following : InputStream resultStream = convertService.convert("pdf", "compress", inputStream, filename);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions