Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » displaying Image base64
displaying Image base64 [message #1058169] Mon, 13 May 2013 02:49 Go to next message
shahrul azhar is currently offline shahrul azharFriend
Messages: 1
Registered: May 2013
Junior Member
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
Re: displaying Image base64 [message #1058427 is a reply to message #1058169] Tue, 14 May 2013 05:27 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1663
Registered: July 2009
Senior Member

Are you getting any errors? Or is the output just blank?

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Difference between consecutive rows(next-current)
Next Topic:Report Designer Will Not Generate PDF
Goto Forum:
  


Current Time: Fri Nov 28 11:13:04 GMT 2014

Powered by FUDForum. Page generated in 0.01751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software