Track FTP upload data in android?

后端 未结 3 1831
粉色の甜心
粉色の甜心 2021-02-06 15:36

I have a working FTP system with android, but I want to be able to track the bytes as they get uploaded, so I can update a progress bar as the upload progresses. Is this possibl

3条回答
  •  萌比男神i
    2021-02-06 15:43

    This can be done using Secure FTP Factory library.

    You just need to implement an instance of the com.jscape.inet.ftp.FtpListener interface, register the instance with the Ftp class and overload the progress(FtpProgressEvent event) method to capture progress information.

    JavaDoc: Overview (secure FTP Factory API)

    Download: Java FTP, Java FTPS and Java SFTP Components

提交回复
热议问题