Exception “java.awt.color.CMMException: Invalid image format” thrown when resizing certain images…why?
问题 After obtaining an image from db, when i try to resize it, by passing width using the below code public static BufferedImage resize(final byte[] pImageData, final int width, final int height, final int maxLength, final int minLength, final String imageSubType) throws Exception { InputStream is = null; BufferedImage resizeImageJpg = null; try { is = new ByteArrayInputStream(pImageData); BufferedImage originalImage = ImageIO.read(is); -------------------- } } The following exception is thrown