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: github.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:05aca74e-237b-60cf-5a7c-6a7797b21e28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9CA:282F7:DABA14:1351183:697B8BEA |
| html-safe-nonce | 77a4103431fb7a12512c37b653c0a82ce85e4cc240c47be1997615e8a50d8a15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUNBOjI4MkY3OkRBQkExNDoxMzUxMTgzOjY5N0I4QkVBIiwidmlzaXRvcl9pZCI6IjE2Njg4ODQ5NTk5NjEyNTQ4OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cde7351cf532029c872b3c73a152ddfd322f6c5ed7cba14d27bdd5f60aea54f1 |
| 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 | 86b3730167656228ed8d24c4f0770806131d1f695bff36b9485630bb7443aa64 |
| 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 | 6adfecb5bc9d8f1aac645d1f3797aca9d302dd85 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width