This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes copyinga remote file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "copyinga remote file" Watch "copyinga remote file" New topic

copyinga remote file

Tharaka Peiris

Joined: Jan 05, 2011
Posts: 11

I want to copy a remote file to local machine.... can anybody help me how to do that?
Its mysql dump file.
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

There are several ways, depending on how you can access this "remote" machine. You didn't say anything about that and yet that's the entire point of the question. So... what are the ways in which you can access that machine?
Tharaka Peiris

Joined: Jan 05, 2011
Posts: 11

Sorry for that.. I can access the machine using the IP... I think IP is enough, isn't it?

thank you
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12760
No, it is not enough, you need a cooperating process on the remote machine. Also, any system connected to the internet is likely to have a firewall or other security precautions.

Just imagine what would happen if anybody could reach into your file system with just your IP address.

FTP is a well known approach for file transfers, but your choices depend on what the remote machine permits.

jQuery in Action, 2nd edition
subject: copyinga remote file
Similar Threads
WA #1.....word association
Combining Home and Remote interfaces in EJB
File Creation on a Particular Path of a Remote Machine in java
How to deploy code from cleasecase RAD
stateful bean with weblogic8.1