Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented 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.
--------
Comments: ** Comment from web user: chenthil_it **

thanks for the reply.
But the sftpfile stream is very slow it took 1hr 15 mins for 400mb file. I tried changing the buffer size but no success. Is there any transfer limit in sftpfilestream.


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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