>      ByteArrayOutputStream buffer = new ByteArrayOutputStream();

although, while not spending a bunch of time researching what you are doing,
one way to improve this is to wrap the BAOS into a
BufferedOutputStream...ie:

ByteArrayOutputStream baos = new ByteArrayOutputStream();
BufferedOutputStream bos = new BufferedOutputStream(baos);

instead of buffer.write, make it bos.write().

when you are doing writing to the bos, don't forget to call bos.flush().

i hope that helps,

-jon

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to