Title: Limitation on byte size (inputstream) · Issue #34 · ConvertAPI/convertapi-library-java · GitHub
Open Graph Title: Limitation on byte size (inputstream) · Issue #34 · ConvertAPI/convertapi-library-java
X Title: Limitation on byte size (inputstream) · Issue #34 · ConvertAPI/convertapi-library-java
Description: 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 ...
Open Graph Description: 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(...
X Description: 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 = fileDat...
Opengraph URL: https://github.com/ConvertAPI/convertapi-library-java/issues/34
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Limitation on byte size (inputstream)","articleBody":"Hello, \r\nI am trying to pass an inputstream to Param() but i am always getting : \"expected 1024 bytes but received 8192\".\r\nHere how i am trying to use: \r\n\r\n `try (InputStream inputStream = fileData.getBody(InputStream.class))` `{`\r\n ` String documentId = documentService.compressDocument(\r\n owner,\r\n titleString,\r\n new Origin(OriginType.WIDERSPRUCH, caseId),\r\n fileData.getFileName(),\r\n fileData.getMediaType().getType() + \"/\" + fileData.getMediaType().getSubtype(),\r\n inputStream,\r\n documentType);`\r\n `return Response.ok(new Success(documentId)).build();`\r\n ` }`\r\nHere 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);` ","author":{"url":"https://github.com/01l01","@type":"Person","name":"01l01"},"datePublished":"2023-11-30T10:36:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/34/convertapi-library-java/issues/34"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:321c54eb-771d-9816-9f60-0b4947c94cca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD8E:2267:1BD551:26CEE7:697B3F39 |
| html-safe-nonce | 72eee2bbbffbcc37936b06172dc4519bf95e9b1c5a5a23e8da8ba5589b3bdbcc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDhFOjIyNjc6MUJENTUxOjI2Q0VFNzo2OTdCM0YzOSIsInZpc2l0b3JfaWQiOiI0OTY1MzUyOTIwMzQyODA2MzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 544d34bdf89fc8007356c4f7696e1829787492e3f7a42383b9ebb16700368819 |
| hovercard-subject-tag | issue:2018350007 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ConvertAPI/convertapi-library-java/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4f71d7737a88bfdaef7ac6417ea36f2507de8949d6ef6bcea58f8a07c7d9751/ConvertAPI/convertapi-library-java/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4f71d7737a88bfdaef7ac6417ea36f2507de8949d6ef6bcea58f8a07c7d9751/ConvertAPI/convertapi-library-java/issues/34 |
| og:image:alt | 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(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 01l01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| turbo-cache-control | no-preview |
| go-import | github.com/ConvertAPI/convertapi-library-java git https://github.com/ConvertAPI/convertapi-library-java.git |
| octolytics-dimension-user_id | 37071453 |
| octolytics-dimension-user_login | ConvertAPI |
| octolytics-dimension-repository_id | 132746706 |
| octolytics-dimension-repository_nwo | ConvertAPI/convertapi-library-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 132746706 |
| octolytics-dimension-repository_network_root_nwo | ConvertAPI/convertapi-library-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width