aspose file tools*
The moose likes Other Open Source Projects and the fly likes transferring file from one servelt as a stream to another servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "transferring file from one servelt as a stream to another servlet" Watch "transferring file from one servelt as a stream to another servlet" New topic
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: http://aspose.com/file-tools
 
subject: transferring file from one servelt as a stream to another servlet