File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File transfer

 
hemant chaudhary
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to transfer one XML file to other FTP server on same network.

Please suggest me best method to do it.

I was thinking about sockets but in that case i need to put one programme on server machine also, right ?

If right then I dont want to do this.

Please suggest some better way.

Thanks and Regards,
Hemant
[ April 29, 2008: Message edited by: hemant chaudhary ]
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the target machine has an FTP server, then FTP would seem to be the best method, wouldn't it?

The Apache Commons Net library contains an FTP client; see the javadocs of the org.apache.commons.net.ftp.FTPClient class for example code.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic