Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

Created Unassigned: System.OutOfMemoryException when trying large files in sftp [1866]

$
0
0
Exception of type 'System.OutOfMemoryException' was thrown.
mscorlib
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Renci.SshNet.SftpClient.InternalDownloadFile(String path, Stream output, SftpDownloadAsyncResult asyncResult, Action`1 downloadCallback)

-------
Multiple files of 400MB or 1GB files.
The entire file is in the stream object that could be the problem.
--------

Viewing all articles
Browse latest Browse all 2955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>