ImageIO disk cache disabled, it writes a lot of ImageIO* files to temp folder.

This commit is contained in:
2016-01-02 11:35:41 +01:00
parent 646d696251
commit cdbfe54dad
@@ -43,6 +43,10 @@ import org.monte.media.jpeg.CMYKJPEGImageReaderSpi;
*/
public class ImageHelper {
static {
ImageIO.setUseCache(false);
}
public static BufferedImage read(byte[] data) throws IOException {
return read(new ByteArrayInputStream(data));
}