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

Reply via email to