As far as I know, you can't. SFTP works on top of SSH, where you can't set the transfer mode. It'll always be binary.
This feels like an XY Problem. What is the issue you're seeing?
In reply to Re: In Perl, How to pass the File Transfermode in SFTP
by stevieb
in thread In Perl, How to pass the File Transfermode in SFTP
by Yedu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |