cancel
Showing results for 
Search instead for 
Did you mean: 

Sending more than 1 file as attachments in FTP

Former Member
0 Kudos

Hi,

Seeking your inputs as how to send more than 1 file ( *.txt, *.jpg etc..)

as attachments using FTP adapter.

Thanks in advance,

Regards,

Pavithra

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi Pavithra,

Use the option additional file in the sender file adapter.

Regards

San

Answers (1)

Answers (1)

Former Member
0 Kudos

The sender file adapter is configured to pick the normal payload which is specified in the File access parameters, and the additional image file that is to be sent as an attachment is configured under the Additional File(s).The file type will be binary.

<b>

Also refer</b>

http://sapient.xi.googlepages.com/xi-excellentintegration

<b>check this link</b>

<b>refer this doc</b>

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee5...

<b>Configuring the sender FILE adapter</b>

The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File

access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured

under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.

Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the

MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format

and also change the file extension.

The PayloadSwapBean module is used to replace the application payload of the XI message that holds the

data with another payload which is appended to the message as an attachment. In our case, the payload

would be file1.xml whereas the attachment would be file1.jpg

The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the

MIME header.

Thanks !!!