TScSFTPClient no progress on sending a file

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
ndi.infotip
Posts: 9
Joined: Mon 12 May 2014 14:05

TScSFTPClient no progress on sending a file

Post by ndi.infotip » Fri 10 Oct 2014 10:40

I use TScSFTPClient (with Delphi XE6) for sending of large files to a SFTP-Server.
I will show the count of bytes, which are sending.
eg. Sending/FileSize
32000/10100100
64000/10100100
96000/10100100
....
The component TScSFTPClient has no Action for count of the sending bytes.
How can get the sending bytes?

I can show the received bytes from a SFTP_Server by the Action OnData.
This Action does not work on sending.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: TScSFTPClient no progress on sending a file

Post by Dimon » Tue 14 Oct 2014 12:30

To process sending data you can use the OnSuccess event. TScSFTPClient sends data by pieces of TScSFTPClient.WriteBlockSize size on uploading file, therefore the OnSuccess event is raised few times.

ndi.infotip
Posts: 9
Joined: Mon 12 May 2014 14:05

Re: TScSFTPClient no progress on sending a file

Post by ndi.infotip » Tue 21 Oct 2014 07:03

It works.
Thanks

Post Reply