nmr-camel component should copy the attachements between the camel message and nmr message.
What's the version of ESB are you using?
Can attach a simple test case to show that issue?
I'm sorry it took so long to respond.
Attached is a project that shows the error.
The output during my run is the following:
18:35:41,522 | INFO | ndpoint-thread-1 | BinaryFileToAttachment | example.BinaryFileToAttachment 42 | 221 - fuseforum.example.attachtest - 0.0.1.SNAPSHOT | Attachment count for out is 1
18:35:46,889 | INFO | ndpoint-thread-1 | BinaryAttachmentReader | example.BinaryAttachmentReader 34 | 221 - fuseforum.example.attachtest - 0.0.1.SNAPSHOT | Message has no attachments
attachtest.zip 5.9 KB
I am using FUSE 4.3.0-fuse-02-00
I just have a change to look your test case. You are trying to put the message body directly as the attachment object in the BinaryFileToAttachment.
But camel message only take the attachment as DataHandler, so the attachment is not set into the camel message. Please change the File object into the DataHandler before you use it as the attachment.
Thank you for that information.
I was not aware of the restriction on attachments.