Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in .NET FTP by (160 points)
Hi,

Can can someone provide a basic sample how to use ByteTransferred event to show transfer speed and update a progress bar or any other simpler method. The samples in the edtftpnet free documentation does not provide any details.
Right now I am doing ftp without displaying transfer status except for uploading & complete.

Dim ftp As FTPConnection = New FTPConnection()
ftp.UploadFile(fs, fd)

Thanks,
Jai

2 Answers

0 votes
by (162k points)
I don't have code handy right now, but basically you get the size of the file being transferred, and also keep a running count of the bytes transferred. That way you always know the percentage transferred when BytesTransferred is triggered and you can update a counter or progress bar.
0 votes
by (160 points)
Thanks, but I know the steps but don't know how to code it. That why I require a sample code. The way I was thinking is when we start uploading a file the byte transferred event is fire every time a certain set amount of data is uploaded. So based on this i ca calculate.

Categories

...