<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-base64</artifactId>
<version>x.x.x</version>
</dependency>
import org.apache.camel.converter.stream.Base64;
byte[] binaryData = "Hello, World!".getBytes();
String encodedData = Base64.encode(binaryData);
System.out.println("Encoded: " + encodedData);
String encodedData = "SGVsbG8sIFdvcmxkIQ==";
byte[] decodedData = Base64.decode(encodedData.getBytes());
System.out.println("Decoded: " + new String(decodedData));