You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SFTP uploads with less/higher than 32kb buffer size would corrupt #70
Hi, I'm using ShareX software developed by @Jaex and my issue related to it is here: ShareX/ShareX#1797
Jaex is using the SSH.NET library in his software so it allows me uploading images using SFTP then giving me a link to view it publicly. But since 11.2.1 the library got updated and causes images to distort (idk the correct term for this issue) corrupt on upload. See here as an example: http://i.qcfb.ca/20160819033042.png. Also (Thanks @Kiwi-1995 for those as an example haha)
Setting the buffer size higher than 32kb causes this image corruption while using SFTP uploads. I tried lower 32kb, still occurs. Only 32kb fixed our issues (Workaround I've found)
changed the title [-]SFTP uploads with less/higher than 32kb would corrupt[/-][+]SFTP uploads with less/higher than 32kb buffer size would corrupt[/+]on Aug 20, 2016
@Nathanael-Mtd Mind sending me the .dll? I guess @Jaex can clone this repo (or he did already?) and update ShareX xD I can wait for the official release^^
ShareX use nuget system, then it's useless. They are going to update their repo when SSH.NET devs are going to publish update to nuget.
(BTW, don't post on the other issue thread please, ShareX dev see what we write here.)
I have seen the same problem. And using 32k did not work either, just the problem was less pronounced. It seems that the write of the stream is reusing the first buffer, on the second call of a stream.write. I have tried the beta package, and it appears to fix the problem
Activity
[-]SFTP uploads with less/higher than 32kb would corrupt[/-][+]SFTP uploads with less/higher than 32kb buffer size would corrupt[/+]Nathanael-Mtd commentedon Aug 20, 2016
I need to add the corrupt problem appears since the 2016.0.0-beta1 of SSH.NET.
drieseng commentedon Aug 20, 2016
I was able to reproduce this issue.
I'll probably fix it this weekend, and try to get a bugfix release out by next weekend.
TNTUP commentedon Aug 20, 2016
Nice! Take your time 🎉
Take into account the offset in SftpFileStream.Write(byte[] buffer, i…
drieseng commentedon Aug 21, 2016
Can you build SSH.NET from source and confirm that this effectively fixes the problem?
TNTUP commentedon Aug 21, 2016
I don't have any VS 12/15 installed 😢
Nathanael-Mtd commentedon Aug 21, 2016
I'm going to test in one hour.
Nathanael-Mtd commentedon Aug 21, 2016
Nice job @drieseng, it works great now !
Thank you for your help.
TNTUP commentedon Aug 21, 2016
@Nathanael-Mtd Mind sending me the .dll? I guess @Jaex can clone this repo (or he did already?) and update ShareX xD I can wait for the official release^^
Nathanael-Mtd commentedon Aug 21, 2016
ShareX use nuget system, then it's useless. They are going to update their repo when SSH.NET devs are going to publish update to nuget.
(BTW, don't post on the other issue thread please, ShareX dev see what we write here.)
TNTUP commentedon Aug 21, 2016
I'm not aware that still notify himself because I don't see him in the participants list ._.
Nathanael-Mtd commentedon Aug 21, 2016
@TNTUP Because he's not participant. He's just a watcher. Now stop talking about that.
I think this Issue can be closed.
ssolomon commentedon Feb 13, 2017
I have seen the same problem. And using 32k did not work either, just the problem was less pronounced. It seems that the write of the stream is reusing the first buffer, on the second call of a stream.write. I have tried the beta package, and it appears to fix the problem