EldoS | Feel safer!

Software components for data protection, secure storage and transfer

IndySFTPClient upload truncating files

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#2594
Posted: 03/22/2007 11:23:57
by Doug C (Standard support level)
Joined: 01/23/2007
Posts: 5

I am using SBB v. 4.4.94 with Indy 10 in Delphi 6.

When I do a manual upload using the IndySFTPclient demo, no problem. Using what appears to be identical code (obviously I'm missing something) in my program, my upload files truncate at 65536 bytes.

Any suggestions on where to look would be appreciated.

Thankyou.
#2595
Posted: 03/22/2007 12:14:40
by Eugene Mayevski (EldoS Corp.)

1) Is there any reason not to use SBB 5?
2) Implement and handle OnProgress and OnError event handlers to see, what is done (i.e. how much data is sent) and what error is reported if any.


Sincerely yours
Eugene Mayevski
#2601
Posted: 03/23/2007 12:26:50
by Doug C (Standard support level)
Joined: 01/23/2007
Posts: 5

Thanks for your response.

1) I have not considered upgrading to SBB 5 because I had no need to as of yet. Since there is a cost involved, I normally only upgrade when new features warrant.

2) I cannot find OnError or OnProgress for IndySFTPClient component. However, no exception condition is raised during the "Put" method, and OnWork shows Workcount of 65536, then the method finishes, seemingly successfully, but with only those first 65536 bytes written.

Thanks again.
#2602
Posted: 03/23/2007 12:55:57
by Eugene Mayevski (EldoS Corp.)

property OnError: TSSHErrorEvent read FOnError write FOnError;

As for OnProgress - yes, OnWork is the same.


Sincerely yours
Eugene Mayevski
#2603
Posted: 03/23/2007 13:45:58
by Doug C (Standard support level)
Joined: 01/23/2007
Posts: 5

I have implemented OnError (simply using similar code as sample project). It is not triggered by the upload.
#2604
Posted: 03/23/2007 14:33:23
by Eugene Mayevski (EldoS Corp.)

Please check the properties of the component in the sample and in your code. It might be that some property has different values.
Frankly speaking, I have no idea why your code doesn't work while the sample works.


Sincerely yours
Eugene Mayevski
#2605
Posted: 03/23/2007 16:23:41
by Doug C (Standard support level)
Joined: 01/23/2007
Posts: 5

This problem started when I began moving my primary development to a new PC. On my old PC, I used Indy 9 with SBB 4.4.94.

I just tried moving the same code back to the old PC, made the necessary adjustments to the OnWork and OnWorkBegin procedures, and the code executes perfectly.

So, it could be an Indy 9 vs. Indy 10 problem. But, then, why does the demo program execute properly in any case?

Any further thoughts?
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 2577 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!