Hy everyone, I having problems to writting a new image from base64 tiff (String)
byte[] dec = Base64.getDecoder().decode(dataDocument.getImagenB64().trim());
InputStream is = new ByteArrayInputStream(dec);
BufferedImage bi = ImageIO.read(is);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
ImageIO.write(bi, "jpg", outputStream);
String output = DatatypeConverter.printBase64Binary(outputStream.toByteArray());
Im getting IllegalArgumentException: image == null! when ImageIO try to write the new image
Thanks.