In Java FTP-Can we compress a file in remote locat

2019-08-29 10:07发布

问题:

Can we compress a file in remote location using ftp, without bringing the file to local machine?

I am doing a POC , in which i want to compress a text or csv file located in remote machine, In java there is program for compression which i use to compress the files located in local machine, My requirement is i need to compress the file in the remote location without bringing it to the local machine , is it achievable in java?

Awaiting for the reply from the genius

回答1:

Check if your server supports SITE commands. If it does, it is possible that those commands are somehow passed to the shell for execution, thus giving you required shell access. Otherwise there's no standard way to use FTP protocol for your task.



标签: java ftp sftp