displaying Image base64 [message #1058169] |
Sun, 12 May 2013 22:49  |
Eclipse User |
|
|
|
Hi All,
I have a question.
I want display image base64 from database in BIRT REPORT
currently i using birt 2.6
i try follow suggestion by JASON in
http://www.eclipse.org/forums/index.php/m/804056/
using this code
importPackage(Packages.javax.imageio);
importPackage(Packages.java.io);
importPackage(Packages.sun.misc);
decoder = new BASE64Decoder();
decodedBytes =
decoder.decodeBuffer(this.getRowData().getColumnValue("Base64imagedata"));
this.data =decodedBytes;
bais = new ByteArrayInputStream( decodedBytes);
bufimg = ImageIO.read(bais);
this.setHeight(bufimg.getHeight() +"px");
this.setWidth(bufimg.getWidth() +"px");
but, the image still not appear.
Please help me
|
|
|
|
Powered by
FUDForum. Page generated in 0.06811 seconds