79408465

Date: 2025-02-03 10:28:02
Score: 1.5
Natty:
Report link

The body must be set as a string, so one hast to write the multipart to OutputStream then call .toString() on the stream.

OutputStream outputStream = new FastByteArrayOutputStream();
multipart.writeTo(outputStream);
exchange.getIn().setBody(outputStream.toString());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Georg Braun