Replies: 1 comment
-
@plpioko given you have a reproducer, I think it's worth creating an issue. Is your server something exotic or not? In any case, that's really something we need to evaluate as ideally we should work with any server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am quite new to Quarkus and use Quarkus version 3.10.0. I am trying to develop Rest Client app that is capable of generating and sending files based on received data. Therefore I decided to use QuarkusRestClientBuilder class as well ClientMultipartForm:
APIintrface apiinterface = QuarkusRestClientBuilder.newBuilder().baseUri(URI.create(BASE_URL)).register(new ReqFilter(token)).build(APIintrface.class);
....
ClientMultipartForm multiPartForm = ClientMultipartForm.create(); multiPartForm.attribute("json_data", jsonData, "json_data"); multiPartForm.binaryFileUpload("pdffile", "pdffile.pdf", "src/main/resources/code64.cdf" , MediaType.APPLICATION_OCTET_STREAM); k = apiinterface.multipartInterface(multiPartForm);
where my interface is:
@POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_JSON) //@PartType(MediaType.TEXT_PLAIN) String multipartInterface(ClientMultipartForm dataParts);
The problem is that if I attach file then my request generates both
Reository: https://github.com/plpioko/rest_playground
Beta Was this translation helpful? Give feedback.
All reactions