In this post, I am going to explain how to Transform the message using transform() method of camel framework.
Suppose a Folder ‘f1’ has text files, and you want to copy all the files from folder ‘f1’ to ‘f2’. While copying, you would like to covert the content to uppercase.
You can achieve above requirement using transform method.
Assume ‘sourceFolder’ has a file ‘quotes.txt’.
Your application should copy quotes.txt and place it in folder ‘destFolder’.
Follow below steps to build complete working application.