On 17/08/2011 12:36, Ronald Klop wrote:
> Hi,
> 
> I did some experiments past days on my live servers and have more
> information.
> 
> The problem occurs with 7.0.19 and 7.0.20 with the NIO connector, but
> not with the BIO connector. In 7.0.16 it doesn't happen with the NIO
> connector.
> My code is not more than something like this (pseudocode):
> doGet(...) {
>    File image = getFile(request.getParameter(...));
>    File resized = getFile(request.getParameter(...));
>    if (image.newerThan(resized)) {
>       resize(image, resized, size);
>    }
>    response.getOutputStream().write(resized.getContent());
> }
> 
> So very straight forward and no fancy tricks with Response objects. This
> worked for years since Tomcat 5 or 6.

Are you using javax.imageio?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to