Setting ASCII mode in Jsch
I need to overcome a Unix - Windows file format (LF to CRLF) issue I'm currently having. The ftp client I am using is Jsch from Jcraft. The documentation online is very bare, although I have come across a flag that can be set SSH_FXF_TEXT_MODE that enables ASCII mode, but I don't see where I should set this in the code itself, nor do I see it mentioned in these Javadocs Below is my own attempt at a workaround. The "Newly Added" line shows how I take the file and convert it to an ASCII encoded string, which I then transfer across using the channelSftp put method. Originally I would have just