FTP - a way to programmatically determine the remaining time or bytes transferred?

I want to make an FTP connection (ideally using Coldfusion 8, but Java is fine too) which will copy the file to the remote server.

However, I want to know how many bytes were transferred , so I can give some feedback to the user.

Is this possible, and if so, which FTP API would you recommend, as I understand that the Sun implementation may be a little behind.

Thanks in advance!

PS: I may have a different process / thread polling the file size on the destination machine through a web service call during file transfer, but it is not ideal. Getting it through the FTP API would be the easiest solution.

+4
source share
2 answers

There are snippets in this discussion on CodeRanch that show how the execution monitor can be implemented in conjunction with the publicly available Apfs FtpClient.

+2
source

Some FTP frameworks for Java support progress monitoring. Since I just started looking at them a few days ago, I can’t tell you if this is suitable for your purpose.

Here is an overview of the various frameworks available here:

http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp.html?page=1

+1
source

Source: https://habr.com/ru/post/1306216/


All Articles