Honored Contributor.. Honored Contributor..
Honored Contributor..

Secure COPY and SFTP PUT



Wanted to know in what mode (ASCII or Binary) the files will be copied when we use scp and SFTP put opreation.

Our requirement is to copy the files in ASCII mode, can this be achived by using HP OO.




1 Reply
Absent Member.. Absent Member..
Absent Member..

Hello Lokesh,

My apologies for the delay response, but after consult with my OO Team I received the following answer:

FTP supports either BINARY/ASCII mode for file transfer while SFTP sends files as BINARY files.

The connection for SFTP operations is performed via ChannelSftp(jsch) which support SFTP protocol version 3. Text mode is supported by SFTP protocol versions 4 and later.

I hope this information helps you,


If you find this or any post useful to resolve the issue, please mark this thread as correct answer and other members can benefit with the information given
Sussan Zamora
SW Support Technical Consultant
San Jose, Costa Rica
Hewlett Packard Enterprise “
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.