*
The moose likes Beginning Java and the fly likes File transfer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "File transfer" Watch "File transfer" New topic
Author

File transfer

hemant chaudhary
Greenhorn

Joined: Feb 22, 2007
Posts: 20
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
Marshal

Joined: Mar 22, 2005
Posts: 41164
    
  45
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File transfer
 
Similar Threads
ftp transfer progress
Want to learn struts
Regarding java I/O
File transfer using Tectia SSH