At 04:04 PM 4/22/99 -0700, you wrote:
>> 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().
Sorry, but I do not get it. What is the reason that bos.write() is better
than buffer.write()? Do you still have to read in byte by byte and then
write byte by byte?
Bing
>
>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
>
___________________________________________________________________________
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