You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2005/12/06 18:21:05 UTC
Re: [COMMONS.NET.FTP] How to know the current percent for a file uploading
>I must upload differents files on a FTP server and I wish to know how to
>obtain the current percent of the file transfer.
Use storeFileStream
(http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/ftp/FTPClient.html#storeFileStream(java.lang.String)), retrieveFileStream, or
appendFileStream depending on the nature of the transfer and keep track
of how many bytes you've written/read relative to the size of the file.
daniel
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
s a v a r e s e # In distant lands, I hear the call of my home.
software research # Yet my work is not done. My journey's just begun.
http://www.savarese.com/ # -- http://www.sleepandthetraveller.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org