Folks,
I have a byte[], which I convert to an java.awt.Image by
BufferedImage image;
InputStream in = new ByteArrayInputStream(imageBytes);
try {
image = ImageIO.read(in);
} catch (IOException ioe) {
throw new RuntimeException(
"Failed to render image",
ioe);
}
return image;
Now, I need to write this image to a PDF using iText, but, iText accepts 'com.lowagie.text.Image'... Any suggestions on how to convert between the 2 image formats....
Any help is appreciated.
TIA