I\'m trying to read, rescale and save images within a Servlet. That\'s the relevant code:
BufferedImage image = ImageIO.read(file); BufferedImage after = ne
I have had the same problem, and found this page.
I tried the suggestion above of creating a BufferedImage with the right type and using it as the after image instead of null in the filter call; and that did indeed resolve the problem.