| Author |
transferring file from one servelt as a stream to another servlet
|
Paresh Wankhede
Greenhorn
Joined: Sep 08, 2006
Posts: 12
|
|
Hi,
In my application i am using apache fileupload to upload the files on the server. My server is acting as a staging server and once the file is downloaded on the server, the same file is again uploaded to another servlet based application on some remote server. We are making this round trip for security reason. But this approch is taking too much time to get the file uploaded on the remote server.
I tried to use the streaming approch provided by apache fileuplod ... but no success....(Ref: http://commons.apache.org/fileupload/streaming.html)
Since I am getting the InputStream for the file being uploded, the only task i see is ho transfer this stream to the remote servlet so that the remote servlet can save the file on its local disk.
Please advice.
Regards,
Paresh
|
 |
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2234
|
|
|
I am not sure , but Apache's HttpClient may help you .
|
Save India From Corruption - Anna Hazare.
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: transferring file from one servelt as a stream to another servlet
|
|
|