If i download a image from my image-servlet from home, everything is ok.
But if i download the image from work, the image will download, but the tcp-connection looks like never ending.
public class ImageServlet extends HttpServlet {
protected void doGet(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException {
// ...
ServletOutputStream servetOutputStream = response.getOutputStream();
ImageIO.write(bufferedImage, imageRequestWrapper.mimeType, servetOutputStream);
servetOutputStream.close();
}
}
Any Suggestions?