开发者

ftp4j - upload a file in append mode

开发者 https://www.devze.com 2023-01-15 09:44 出处:网络
开发者_如何转开发Is there a way to upload a file with ftp4j in append mode? I can\'t find any reference to that in the documentation or on google. Thank you!Starting from frp4j 1.6 you can use the app

开发者_如何转开发Is there a way to upload a file with ftp4j in append mode? I can't find any reference to that in the documentation or on google. Thank you!


Starting from frp4j 1.6 you can use the append() method:

  • append(File)
  • append(File, FTPDataTransferListener)
  • append(String, InputStream, long, FTPDataTransferListener)

See: http://www.sauronsoftware.it/projects/ftp4j/api/it/sauronsoftware/ftp4j/FTPClient.html#append%28java.io.File%29


The FTPClient.upload(File file, long RestartAt) method can restart an upload. The parameter restartAt specifies the restart point (number of bytes already uploaded). Use isResumeSupported() to check if the server supports resuming of broken data transfers.

0

精彩评论

暂无评论...
验证码 换一张
取 消