how to implement FTP using java?

半腔热情 提交于 2019-12-23 10:28:32

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/4720539/how-to-implement-ftp-using-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!