This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Servlets and the fly likes Streaming large content to client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Streaming large content to client" Watch "Streaming large content to client" New topic

Streaming large content to client

kumar thokkala

Joined: Apr 12, 2004
Posts: 24
Hello Ranchers,
How y'all doing today? Need your help.

I am generating some pdf files from a base pdf template on fly and streaming them to client. When I do this just for one file it is working fine, but now I need to generate several files and stream all of them to client at once. So in this situtaion what are my options?

I did search on google and found that one option would be to compress the content and stream it to client. [ UD: removed link to copyrighted material ] , but how can modify the code on this site to stream dynamically generate pdf file(s) stream to client as a zip file?

Ranchers, please provide me some input to handle this situation. Any other useful sites/information is greatly appreciated.


(Moderator: please move it appropriate forum, if this question doesn't belong here. Thanks.)
[ August 03, 2007: Message edited by: Ulf Dittmer ]
kumar thokkala

Joined: Apr 12, 2004
Posts: 24
While waiting for your input I tried using iText package, it is wonderful, I could able to solve my problem.

I agree. Here's the link:
subject: Streaming large content to client
It's not a secret anymore!