cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP encoding issue

Former Member
0 Kudos

Hi Experts,

need your valuable advice here.

my scenario is File to File. source is File adapter and the receiver is SFTP.

by default SFTP adapter writes the data in binary mode but our third party wants the data in ASCII format. we dont have option in SFTP adapter to select the "write mode" like FTP adapter. How can i achieve this?

If i use java mapping for converting the data into US-ASCII format and sends to SFTP, will it work? because the SFTP adapter again writes the data in binary mode.

can i use MessageTransformation bean? or should i go with custom bean?

please advice.

Thanks,

--Naresh

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

I don't think that you need to do anything special.

PI sends data in UTF-8. US-ASCII is a subset of UTF-8

So you do not need a transformation.