FTP - way to programatically determine time remaining or bytes transfered?
        Posted  
        
            by ciaranarcher
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ciaranarcher
        
        
        
        Published on 2010-04-07T10:42:11Z
        Indexed on 
            2010/04/07
            10:43 UTC
        
        
        Read the original article
        Hit count: 226
        
Hi all
I want to make an FTP connection (ideally using Coldfusion 8, but Java is fine too) that will copy a file to a remote server.
Crucially however, I want to know how many bytes have been transferred so I can give some feedback to the user.
Is this possible, and if so what FTP API would you recommend as I understand the Sun implementation may be a bit lacking.
Thanks in advance!
PS: I could have another process/thread poll the file size on the destination machine via a web service call while the file is being transferred but it's not ideal. Getting it through FTP API would be the neatest solution.
© Stack Overflow or respective owner