I had the same problem under Apache+JServ, and flush() didn't
seem to help. I think the browser simply timed out. The reliable
way for us was save the image on the file system and let web
server serve it.
On Thursday, Apr-01-1999 11:31 AM (PST) [EMAIL PROTECTED] (Aaron Porter) wrote:
|> Try calling flush() on the OutputStream after you are finished writing the
|> data.
|>
|> Aaron
|>
|> > -----Original Message-----
|> > From: Jim Tomlinson [mailto:[EMAIL PROTECTED]]
|> > Sent: Thursday, April 01, 1999 11:25 AM
|> > To: [EMAIL PROTECTED]
|> > Subject: GIF problems with new JRun
|> >
|> >
|> > I have a servlet (let's call it myServlet) which returns
|> > HTML, including
|> > links to images. The servlet also serves up those images, as the
|> > previously sent links are of the form:
|> > <IMG src="/servlet/myServlet?image=foo.gif">
|> > I do this because the servlet and all associated gif's are
|> > packaged in a
|> > jar file. To serve each image I do a
|> >
|> > InputStream
|> > inStream = getResourceAsStream(imageName);
|> > ServletOutputStream
|> > mWriter <HttpServletResponse>.getOutputStream();
|> >
|> > and then read inStream and write to mWriter until inStream is empty. I
|> > can't get the size of the image (so I can then do a
|> > <HttpServletResponse>setContentLength() ), because the image is only
|> > available as a resource.
|> >
|> > Here's the problem: this all worked fine with the previous
|> > version of JRun
|> > with IIS, but now with JRun 2.3 I only get the first part of
|> > each image.
|> > Any idea what's changed to break it (I know my code hasn't), and if
|> > there's some configuration magic I could do to fix it?
|> >
|> > Thanks in advance; I'll be sending this to the JRun newsgroup as well.
|> > --
|> > Jim Tomlinson [EMAIL PROTECTED] 206.217.7927
|> >
|> > ______________________________________________________________
|> > _____________
|> > 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
|>
___________________________________________________________________________
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