SecureBlackbox 16: How do I specify text or binary mode for file transfer with SFTP?

Note: This article applies only to SecureBlackbox Legacy. For future development please consider using the latest version.

By default, SFTP uses binary mode.

Text mode is supported by the SFTP protocol in versions 4 and later. To ensure that the connection is established using SFTP 4 or later, you need to enable SFTP 4, 5, and 6 and disable SFTP 1, 2, and 3 using the Versions property of the ElSimpleSftpClient or ElSftpClient components. See the documentation for information about how to set the Versions property.

To use Text mode for data transfer using the Upload*() and Download*() methods of ElSimpleSFTPClient, use the ASCIIMode property of the ElSimpleSFTPClient component.

ElSimpleSFTPClient emulates ASCII mode for protocol versions of 3 and lower. However, this emulation is not reliable if you don't know what EOL (end-of-line) character(s) the server uses.

We appreciate your feedback.  If you have any questions, comments, or suggestions about this article please contact our support team at