This never completes on files that are close to 2GB
This succeeded on files close to 500MB. Not sure where the threshold is.
But the memory utilization goes up to 5GB+ and bounces up and down indefinitely
This succeeded on files close to 500MB. Not sure where the threshold is.
But the memory utilization goes up to 5GB+ and bounces up and down indefinitely
using (var ms = new MemoryStream())
{
sftp.BufferSize = 1024 * 16;
sftp.DownloadFile(file.FullName, ms);
}