How to make camel-http4 producer endpoint to send a multipart/formdata from HashMap object
Issue
This is the expecting camel route.
client -- multipart/formdata --> camel-undertow. Modify some formdata. camel-http4 -- multipart/formdata --> backwend webservice
Client will send a request something like this.
curl -v -X POST -F greeting=hello -F 'sampleFile=@demo.txt' http://localhost:8080/sample
The camel-undertow consumer endpoint automatically converts the request data to HashMap object and sets it to the exchange.in.body.
Now, how to make camel-http4 producer endpoint to send a multipart/formdata from HashMap object?
Environment
- Red Hat Fuse
- 7.x
- standalone SB
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.