Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » displaying Image base64
displaying Image base64 [message #1058169] Sun, 12 May 2013 22:49 Go to next message
shahrul azhar is currently offline shahrul azhar
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 01:27 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1424
Registered: July 2009
Senior Member

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

Michael
Actuate – The BIRT Company™

BIRT Developer Center
Check out the new, free BIRT Viewer Toolkit
Previous Topic:Difference between consecutive rows(next-current)
Next Topic:Report Designer Will Not Generate PDF
Goto Forum:
  


Current Time: Mon Apr 21 11:37:11 EDT 2014

Powered by FUDForum. Page generated in 0.12617 seconds