Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transferring file from one servelt as a stream to another servlet

 
Paresh Wankhede
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure , but Apache's HttpClient may help you .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic