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
Hello,
I discovered an issue uploading files.
I upload a csv file with column headers.
What happens is that the column headers are repeated when the buffer size is reached.
Increasing the buffer size to larger than the pushes the problem further into the file but does not provide a workaround.
Reverting to the 2013 version of the library seems to provide a workaround.
So the bug was introduced after version 2013.4.7.0
Here is my code. The problem occurs around the 4k in the file, the column header at the start of the file is repated 4k into the file.
I verified that the problem is not in my data.
The problem occurs only when uploading.
public string UploadByteArray(string ftppath, byte[] databuffer)
{
using (var client = new SftpClient(HostName, UserName, Password))
{
client.Connect();
Console.WriteLine("Connected to {0}", HostName);
When I both use 2016.1.0-beta1 and set buffer size to larger than filesize it worked.
I think there might still be some issue with 2016.1.0-beta1 if buffer size is smaller than file size.
A customer reported that the file file content was duplicated with 4k buffer and 300k file size, the file content was written twice. The first half was correct, the second half a duplicate of the first.
This only happens sometimes.
Hello,
I discovered an issue uploading files.
I upload a csv file with column headers.
What happens is that the column headers are repeated when the buffer size is reached.
Increasing the buffer size to larger than the pushes the problem further into the file but does not provide a workaround.
Reverting to the 2013 version of the library seems to provide a workaround.
So the bug was introduced after version 2013.4.7.0
Here is my code. The problem occurs around the 4k in the file, the column header at the start of the file is repated 4k into the file.
I verified that the problem is not in my data.
The problem occurs only when uploading.
public string UploadByteArray(string ftppath, byte[] databuffer)
{
using (var client = new SftpClient(HostName, UserName, Password))
{
client.Connect();
Console.WriteLine("Connected to {0}", HostName);
The text was updated successfully, but these errors were encountered: