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:

enter image description here

when downloaded old "hello world" again:

enter image description here

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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -