Topic "Limitation of Upload and Download files"

Author Message
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
I am using the .NET library to create a Windows Application (VS2013).
I am trying to upload/download SFTP to/from a NonStop Tandem Guardian server, but it stops at 184217600 bytes.
Is there a way to by-pass this limitation?
My files can reach upto 600 MB.



TransferOptions opt = new TransferOptions();
opt.OverwriteMode = OverwriteMode.Overwrite;
opt.TransferMode = TransferMode.Binary;
opt.PreserveTimestamp = false;
FilePermissions perm = new FilePermissions();
opt.FilePermissions = perm;
perm.GroupWrite = true;
perm.GroupRead = true;
perm.GroupExecute = true;
perm.UserExecute = true;
perm.UserRead = true;
perm.UserWrite = true;
perm.OtherExecute = true;
perm.OtherRead = true;
perm.OtherWrite = true;


DateTime start = DateTime.Now;
TransferOperationResult res = session.PutFiles(@"C:\SQLXXX2", "SQLXXX2", false, opt);
DateTime end = DateTime.Now;
res.Check();
if (res.IsSuccess)
{
Console.WriteLine("SUCCESS - TIME: {0}", end.Subtract(start3));
}
else
{
SessionRemoteExceptionCollection erCol = res.Failures;
foreach (SessionException er in erCol)
Console.WriteLine(er.Message);
}
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
WinSCP does not have such limitation.
What exactly does "stop" mean?
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
It throws an exception

Copying files to remote side failed.
General failure (server should provide error description).
Error code: 4
Error message from server: Failure

Common reasons for the Error code 4 are:
- Renaming a file to a name of already existing file.
- Creating a directory that already exists.
- Moving a remote file to a different filesystem (HDD).
- Uploading a file to a full filesystem (HDD).
- Exceeding a user disk quota.


dh wrote:
I am using the .NET library to create a Windows Application (VS2013).
I am trying to upload/download SFTP to/from a NonStop Tandem Guardian server, but it stops at 184217600 bytes.
Is there a way to by-pass this limitation?
My files can reach upto 600 MB.



TransferOptions opt = new TransferOptions();
opt.OverwriteMode = OverwriteMode.Overwrite;
opt.TransferMode = TransferMode.Binary;
opt.PreserveTimestamp = false;
FilePermissions perm = new FilePermissions();
opt.FilePermissions = perm;
perm.GroupWrite = true;
perm.GroupRead = true;
perm.GroupExecute = true;
perm.UserExecute = true;
perm.UserRead = true;
perm.UserWrite = true;
perm.OtherExecute = true;
perm.OtherRead = true;
perm.OtherWrite = true;


DateTime start = DateTime.Now;
TransferOperationResult res = session.PutFiles(@"C:\SQLXXX2", "SQLXXX2", false, opt);
DateTime end = DateTime.Now;
res.Check();
if (res.IsSuccess)
{
Console.WriteLine("SUCCESS - TIME: {0}", end.Subtract(start3));
}
else
{
SessionRemoteExceptionCollection erCol = res.Failures;
foreach (SessionException er in erCol)
Console.WriteLine(er.Message);
}
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
Found it. I needed to turn off the Resume Support State in the Transfer options.


TransferResumeSupport sup = new TransferResumeSupport();
sup.State = TransferResumeSupportState.Off;
opt.ResumeSupport = sup;




dh wrote:
I am using the .NET library to create a Windows Application (VS2013).
I am trying to upload/download SFTP to/from a NonStop Tandem Guardian server, but it stops at 184217600 bytes.
Is there a way to by-pass this limitation?
My files can reach upto 600 MB.



TransferOptions opt = new TransferOptions();
opt.OverwriteMode = OverwriteMode.Overwrite;
opt.TransferMode = TransferMode.Binary;
opt.PreserveTimestamp = false;
FilePermissions perm = new FilePermissions();
opt.FilePermissions = perm;
perm.GroupWrite = true;
perm.GroupRead = true;
perm.GroupExecute = true;
perm.UserExecute = true;
perm.UserRead = true;
perm.UserWrite = true;
perm.OtherExecute = true;
perm.OtherRead = true;
perm.OtherWrite = true;


DateTime start = DateTime.Now;
TransferOperationResult res = session.PutFiles(@"C:\SQLXXX2", "SQLXXX2", false, opt);
DateTime end = DateTime.Now;
res.Check();
if (res.IsSuccess)
{
Console.WriteLine("SUCCESS - TIME: {0}", end.Subtract(start3));
}
else
{
SessionRemoteExceptionCollection erCol = res.Failures;
foreach (SessionException er in erCol)
Console.WriteLine(er.Message);
}
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License