ASCII

May 12, 2010 at 7:25 PM
I have an ftp server that needs to connection via ASCII encoding vs. Binary. I didn;t see this option addressed. Did I miss it?
Coordinator
May 22, 2010 at 3:13 AM

You can use the SendCommand  method to send the "binary" command to switch.

Dec 8, 2011 at 12:07 PM

I just tried the ftp.SendCommand("binary"), but it returnes "unknown command". Any suggestions ?

Apr 23, 2012 at 3:26 PM
Edited Apr 23, 2012 at 3:27 PM

Same problem here. You should check the "binary" command using your favourite ftp client, for example FileZilla. When I did this (using FileZilla portable) I also got the response "unknown command", so I guess this may not a problem of C# FTP Library but of our/your ftp server.

May 20, 2012 at 11:42 PM

I got it to work using ftp.SendCommand("TYPE I");