cancel
Showing results for 
Search instead for 
Did you mean: 

Content of Attachment to be sent as the target file

Former Member
0 Kudos

Hello All,

   We have a requirement where only an attachment is sent to PI over HTTP adapter. There is no source payload.

All we need to do is, read the content of the attachment and send it to the target over a file adapter.

Any ideas how to implement this would be helpful.

Aparna

Accepted Solutions (1)

Accepted Solutions (1)

former_member190624
Active Contributor
0 Kudos

Hi Aparna,

Have you tried with  payload swap bean module  in HTTP adapter ? If you want to place input attachment on FTP server , use below screen shot as reference

Note : In above screen shot , i used mail adapter . Use above adapter module configuration in sender HTTP communication channel.

Regards

Hari.

Former Member
0 Kudos

I will try your solution as well Hari.

Answers (1)

Answers (1)

ambrish_mishra
Active Contributor
0 Kudos

Aparna,

Is the attachment in XML or flat? do you want to read the attachment and do transformation in PI or simply pass the file to the target?

Ambrish

Former Member
0 Kudos

Hello Ambrish,

         The source attachment might be in a .csv format. Hence we need to read the content of the attachment, and send the content via a file adapter to the target. There is no source payload at all. It is only attachment over a HTTP adapter. Need a work around to meet this requirement.

Aparna