aspose file tools
The moose likes Certification Results and the fly likes Reading a file in a remote server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Certification Results
Reply Bookmark "Reading a file in a remote server" Watch "Reading a file in a remote server" New topic
Author

Reading a file in a remote server

santhosh Dharmarajan
Greenhorn

Joined: Apr 13, 2005
Posts: 3
Hello All

This is regarding a query to read a file in a remote server.

The user interface is a html screen which contains 2 fields: Server ip & file name. Both are drop down fields.So they can select only the given file names & server names.

A servlet will recieve the data from the html.
The logic used is as below:
A URL is created with input given and using URLCOnnection i get the inputstream and read the data in the file. But i get an error, "file not found."
The url path formed looks like this
http://serverip/filepath/filename.

The file i am checking is in the home directory in the unix server.
Will the path given in the url check in the home directory. If not how to specify the path to the "home" directory in the url path.

Thanks
santhosh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading a file in a remote server
 
Similar Threads
File upload into project structure
Commons FileUpload
problem displaying images from files in Firefox
Problem in reading files in remote server
reading a file located on the server