Think of a scenario in which you are sending files over an FTP channel. Consider that there are two files, say
vendors.txt, that need to be sent over FTP to a remote location. To accomplish this, we need to follow these steps:
InputStreamand create two separate streams for orders and vendors.
MessageBuilderclass, use the
withpayload()method to convert the files into messages.