Skip to content

Limitation on byte size (inputstream) #34

Description

@qpqqq

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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