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

2019-08-29 10:10发布

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

标签: java ftp sftp
1条回答
祖国的老花朵
2楼-- · 2019-08-29 10:42

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.

查看更多
登录 后发表回答