File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Reading a file(on the internet) using servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Reading a file(on the internet) using servlets" Watch "Reading a file(on the internet) using servlets" New topic
Author

Reading a file(on the internet) using servlets

Ashish Sarin
author
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
    
    5
Hello,
Can anyone please tell me how to read a file using servlets, if the file is located on the internet ? The servlet and the file are located at two different locations and the server on which the file is located doesn't have any web server software installed.
If possible let me know the resources from where i can get more information about this problem.
thanks in advance
ashish sarin


Author of
Getting started with Spring Framework
Portlets in Action
Spring Roo 1.1 Cookbook
Portlets blogSpring Roo blog
saager mhatre
Ranch Hand

Joined: Dec 20, 2000
Posts: 61
Systemically, you would have to have some means of referencing the file in order to access it. A simple path over the network seems the only alternative to the Webserver model. If you can't see/access the file over the network, it's probably 'cause your not supposed to!
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
if you dont have any software installed, then you can not get the file.
without any server software the computer that holds the file is like any other computer hooked up to a network and you should not be able to get any data from this computer.
so to read the file install a server:
e.g. HTTP, FTP, RMI and so on. Then have the servlet load the file from this server
or go the other way and have the computer that holds the file put it on the servlet computer (but again, you need to install some kind of software)
k
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading a file(on the internet) using servlets