Ftp file transfer program java




















You should never use plain FTP unless you're feeling completely secure, which means that it won't bother you if somebody gets into your FTP account, and that you are using a password you have never used anywhere else.

Once you have imported the library, you create an Ftp object using the hostname, username and password. Then you can use self-explanatory methods such as connect establish an FTP connection , setBinary use binary mode rather than ASCII text mode and mupload multiple file upload using a regular expression. You can search the Web on "bad passwords" to find more, and even worse, examples. However, plain FTP sends even well-chosen passwords in clear text, and anyone sniffing your network can see them.

Downloading is similar. But it's a good general rule to always presume that it's your own code that's at fault unless you have a very good reason to think otherwise. Add a comment. Active Oldest Votes. Improve this answer. Uriah Carpenter Uriah Carpenter 6, 30 30 silver badges 28 28 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. December 19, December 18, Your email address will not be published. Save my name, email, and website in this browser for the next time I comment.

Notify me of follow-up comments by email. Notify me of new posts by email.



0コメント

  • 1000 / 1000