aspose file tools*
The moose likes Java in General and the fly likes getting the files from other server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "getting the files from other server" Watch "getting the files from other server" New topic
Author

getting the files from other server

saravanan balu
Ranch Hand

Joined: May 19, 2000
Posts: 49
Hi All,
i need to retrieve files from the web server from my app server n these two servers are in two different machines over the network.can anyone tell me how to do that??
thanks...
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
Well, there are several approaches but the simplest might be to use a URL object. Something like
java.net.URL url = new URL( "file://webserver.com/file/myFile" );
InputStream in = URL.openStream();
etc,...
Sean
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting the files from other server