Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 1925
Registered: July 2009
Senior Member

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

Michael

Developer Evangelist, Silanis
Previous Topic:Difference between consecutive rows(next-current)
Next Topic:Report Designer Will Not Generate PDF
Goto Forum:
  


Current Time: Fri Apr 26 03:10:29 GMT 2024

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

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

Back to the top