Try writing small chunks (~4K) instead of sending the whole thing at one
time. There is a buffer limit around 4K with socket programming. This isn't
Java specific. I had the same problem in C++. Try using a
BufferedOutputStream with a buffer size of 4K.

Aaron

> -----Original Message-----
> From: Tim Fleming [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 03, 1999 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Servlet Image
>
>
> The gif is from a file.  I've recently tried streaming it to
> a file after streaming to ServletOutputStream.  The gif in
> the file is fine so the loading and manipulating I do must be
> ok.  I'm thinking that the ServletOutputStream is cutting it
> off after some fixed number of bytes.
>
> -----Original Message-----
> From:   Aaron Porter [SMTP:[EMAIL PROTECTED]]
> Sent:   Wednesday, March 03, 1999 11:03 AM
> To:     [EMAIL PROTECTED]
> Subject:        Re: Servlet Image
>
> Is the GIF dynamically created or is it from a file?
>

___________________________________________________________________________
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