when i tried to convert using camal route its getting me an error says
Data format 'base64' could not be created
my code:
i tried this way
<route id="myroute">
<from id="_fromx1" uri="file:///d:/Russion_MoH/FILES/SENT/EndBatch"/>
<marshal id="_marshal1">
<camel:base64/>
</marshal>
<to id="_tobase642" uri="file:///d:/RmohOut"/>
</route>
and this way
<route>
<from id="_fromx1" uri="file:///d:/Russion_MoH/FILES/SENT/EndBatch"/>
<marshal ref="base64withLineLength64" />
<to id="_tobase642" uri="file:///d:/RmohOut"/>
</route>
none of works
config:
<camelContext>
.......................
<dataFormats>
<!-- for a newline character (\n), use the HTML entity notation coupled with the ASCII code. -->
<base64 lineSeparator=" " id="base64withNewLine" />
<base64 lineLength="64" id="base64withLineLength64" />
</dataFormats>
.............
</camelContext>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-base64</artifactId>
<version>2.17.0.redhat-630187</version>
</dependency>