2011/8/17 Ronald Klop <ronald-mailingl...@base.nl>: > > Op woensdag, 17 augustus 2011 13:41 schreef Mark Thomas <ma...@apache.org>: >> >> 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 >> > > > Sometimes. Mostly I run ImageMagick in a separate process. But sometimes it > does things with javax.imagio.
https://wiki.apache.org/tomcat/FAQ/KnownIssues - see ImageIO Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org