I know this is old but I'm hoping someone will see it and be able to help.
I've been using edtftpnet for a couple of years with no issues. We recently started sending XML as one big line of text (no CR/LF). This is fine as long as the file doesn't get too big. I have a 700MB file that shoots up to 1.4GB of memory and then throws a System.OutOfMemory exception. I've tried playing with the transferbuffer setting but I don't think it's getting that far. It never reports any bytes are transferred.
We have been able to send > 2GB files with no problems as long as it's not one big line.
Any ideas would be appreciated.
Here is my code:
_ftpClient = new FTPClient();
_ftpClient.DataEncoding = System.Text.Encoding.Default;
_ftpClient.ConnectMode = FTPConnectMode.PASV;
_ftpClient.RemoteHost = "serverName";
_ftpClient.TransferCompleteEx += _ftpClient_TransferCompleteEx;
_ftpClient.BytesTransferred += _ftpClient_BytesTransferred;
try {
_ftpClient.Connect();
_ftpClient.Login("foo", "bar");
_ftpClient.TransferType = FTPTransferType.ASCII;
_ftpClient.Put(@"C:\output\big.xml", "ftptest.xml");
}
catch (Exception ex) {
WriteLog(ex.Message);
}