I would add an image to an excel file created using the library jxl:
http://jexcelapi.sourceforge.net/
I try adding 2 images with this code:
InputStream stream = ClassLoader.getSystemResourceAsStream("images/logo1.png");
byte abyte0[] = new byte[stream.available()];
stream.read(abyte0);
wsheet.addImage(new WritableImage(1, 1, 8, 6, abyte0));
InputStream stream2 = ClassLoader.getSystemResourceAsStream("images/logo2.png");
byte abyte2[] = new byte[stream2.available()];
stream2.read(abyte2);
wsheet.addImage(new WritableImage(1, 11, 5, 34, abyte2));
But the result is not correct. The first image is correctly added, but the second one no.
This is a screenshot of that:
The image printed is all black! How can i fix this?
Thank you.