Base64 Data Format
To specific a maximum line length for the encoded data.
The line separators to use.
Instead of emitting '+' and '/' we emit '-' and '_' respectively. urlSafe is only applied to encode operations. Decoding seamlessly handles both modes.
In this example we marshal the file content to base64 object.
In this example we unmarshal the payload from the JMS queue to a byte object, before its processed by the newOrder processor.
To use Base64 in your Camel routes you need to add a dependency on camel-base64 which implements this data format.
If you use Maven you can just add the following to your pom.xml: