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

Created Issue: sftpClient.WriteAllText corrupts uploaded data [1481]

$
0
0
Reproduce:

```
var sftpClient = new SftpClient( server, port, user,
new PrivateKeyFile( new MemoryStream( Encoding.ASCII.GetBytes( privateKey ) ) ) );

// 4* 1024 - data will be corrupted, 1*1024 - data will be transferred OK

var dataToUpload = new string( '0', 4 * 1024 ) + "Z";

sftpClient.Connect();
sftpClient.WriteAllText( "incoming/text.txt", dataToUpload, Encoding.ASCII );
```

Viewing all articles
Browse latest Browse all 1026

Trending Articles



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