Apr 02

You can use URL class to access an ftp server by using the ftp protocol with the URL

URL url = new URL("ftp://username:password@ftp.xyz.com/file.txt");

The URL can then be used to open a connection to the URL and read the contents

If you need more functionality than simply pulling files from the ftp server then some other options include:

  • Sun’s undocumented class sun.net.ftp.FtpClient
  • Jakarta Commons Net library

written by objects \\ tags: , , ,

Leave a Reply

You must be logged in to post a comment.