Thanks Senthil and Anil for your responses.
I got it working.
The reason it was not producing an output in the bytes was because I had provided a value for ‘outputFileName’ variable and the conversion was actually getting written in the file with the name in the outputFileName. After removing that value, I was able to get output in the ‘bytes’ object.
Thanks again for looking into it!
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services