Hi, I am developing an web application in which I want to download the group files in the specified folder in the zip format. I written the pgm which ZIPs and download it.
My webapplication server and the files also in the same server. So I can able to download that files easily.
But what I want is, supposing my web application server(tomcat or jrun)in one server and files needs to be downloaded in the zip format is in another server, then how can download it?
PLs suggest me a solution for this.
Another problem which i am facing is, i can able to download the zipped files, whose size is greater than 10 MB-60MB. But I can't able to get that downloaded file. Whether server has any limitation in it?
Joined: Apr 29, 2004
I had to do something like that in a Swing application, so I'll describe my approach. I just have to remind you that using IO to the file system makes your application at least less scalable. First of all, suppose the file is in an unreachable place through you operation system. Then you will need an application running on that machine. It could even be a RMI application that just listens to file requests. Now, once you request a file the RMI application responds with an address (host + port number) for you to open a socket stream; from there you copy the file to a temporary location in your web server machine or directly to the response stream. But the simplest case is just put the files in a shared directory which you web server can at least read. That should save you some network traffic and code. Finally, I'm really sorry but it's really hard to understand what you meant in the last paragraph. Maybe because English is not my primary language. Can you please rephrase it?
Henrique Sousa<br />SCJP 1.4<br /> <br />All men die, not all men really live - Braveheart, 1995