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

Commented Issue: Payload cannot be more then 32768 bytes. [1465]

$
0
0
During 144 KB file upload exception occur.
Could you please advice where is the problem - in my code or in the Renci.SshNet.dll ?

System.InvalidOperationException: Payload cannot be more then 32768 bytes.
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Channels.Channel.SendMessage(ChannelDataMessage message)
at Renci.SshNet.Channels.Channel.SendData(Byte[] buffer)
at Renci.SshNet.Sftp.SftpSession.SendMessage(SftpMessage sftpMessage)
at Renci.SshNet.Sftp.SftpSession.SendRequest(SftpRequest request)
at Renci.SshNet.Sftp.SftpSession.RequestWrite(Byte[] handle, UInt64 offset, Byte[] data, EventWaitHandle wait)
at Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, SftpUploadAsyncResult asynchResult, Flags flags)
at UploadData()
Comments: ** Comment from web user: angriukas **

Could it be related to var localFileStram?
my code is:

using (var localFileStram = File.OpenRead(FullName))
{
_SftpClient.UploadFile(localFileStram, remoteFile, true);


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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