I got this code:
java.awt.image.BufferedImage bi = javax.imageio.ImageIO.read(attachment.getAttachmentAsBlob().getBinaryStream());
Although the Binary Stream
is byte array
of 3727458 bytes, the function returns null
.
My purpose is to get a Blob
from Oracle
which is a TIFF image and convert it to PNG, do I have some other alternatives to make it?