Hello!
Using edtFtpPro.net...
Using a SecureFTPConnection with ftp.TransferType = FTPTransferType.BINARY; and ftp.DetectTransferMode = false; on the constructor.
on some other method, when uploading a file:
using (var stream = File.Open(realSource, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.None))
{
currentFileSize = stream.Length;
ftp.UploadStream(stream, realFn);
}
then the transfer keeps selecting ASCII for some files (I guess, based on the extension of realFn), resulting in corrupted files sometimes.
How do I do to prevent this to happen and use ONLY binary transfers with streams?