• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

transferring file from one servelt as a stream to another servlet

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure , but Apache's HttpClient may help you .
 
reply
    Bookmark Topic Watch Topic
  • New Topic