Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Writing to a ServletOutputStream

843841Aug 5 2005 — edited Aug 5 2005
In my application I write a byte array (the content of a file) to a ServletOutputStream. To do this, I user writeand at the end, the flush()-command.
However, my application is memory-critical, so I do not want to use many memory if the file I want to write to is very big.
Does anybody know if and when yes how I can limit the buffer the OutputStream writes to before flushing?
Does anybody know what internal datastructure is used and how the data is be organised?

Thank you very much for help

Volker
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2005
Added on Aug 5 2005
1 comment
373 views