how to implement FTP using java?

2019-06-22 00:52发布

I am working with FTP.......i have to embedd a msg to a image file at client side and i have to send it to the server....on the server side i have to retrieve the image file and then i will retrieve the message. I have completed the embedding the message and retrieve the message using cryptography and steganography techniques. I am loking for how can i transfer that file from client to server.....i have to work with FTP.....how can use FTP successfully to transfer a file from client to server and retrieve it on server side?

2条回答
Explosion°爆炸
2楼-- · 2019-06-22 01:21

You can use apache commons FTPClient. They have a good example on that page.

查看更多
Evening l夕情丶
3楼-- · 2019-06-22 01:28

To add to CoolBeans answer, there are a number of existing packages that handles ftp. Implementing it yourself is not a good idea. My personal favourite is ftp4j.

查看更多
登录 后发表回答