Transfer raw binary with apache commons-net FTPClient?
UPDATE: Solved I was calling FTPClient.setFileType() before I logged in, causing the FTP server to use the default mode ( ASCII ) no matter what I set it to. The client, on the other hand, was behaving as though the file type had been properly set. BINARY mode is now working exactly as desired, transporting the file byte-for-byte in all cases. All I had to do was a little traffic sniffing in wireshark and then mimicing the FTP commands using netcat to see what was going on. Why didn't I think of that two days ago!? Thanks, everyone for your help! I have an xml file, utf-16 encoded, which I am