java - how to sftp text (ascii) file to mainframe -
i'm trying sftp text file remote mainframe server using java libraries (tried sshj , jsch)
but when file reaches remote server encoding breaks. not sure if new line characters blame or there other reasons, how file looks in winscp after uploaded:
when downloaded old "hello world" again:
server seems use ssh-2.0-openssh_5.0 i've read ascii mode support added sftp relatively , 1 should not rely on it.
can data encoded somehow locally before putting file server? java means can used it?


Comments
Post a Comment