I have an http endpoint consuming a *multipart* request, and I would like to
split the corresponding camel message in order to get a list of InputStream
with the different "parts".
I tried the following:
But I do receive the "raw" multipart body.
Is there an *easy* way to split it, without the burden of parsing this
multipart character stream ?
Or a special annotation (other than @Body) we could use ?
(NB: More or less what CXF is doing with:
public Response myService(MultipartBody body) {
=> InputStream of piece#1 =
body.getAllAttachments().get(0).getDataHandler().getInputStream()
}
)
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-split-a-multipart-http-request-tp5735438.html
Sent from the Camel - Users mailing list archive at Nabble.com.