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
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!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Reading a file(on the internet) using servlets