massi.b Posted May 23, 2014 Share Posted May 23, 2014 I'm using iReport 5.5.0. I would like to display images store as byte array in Postgres on my report. How can i do that? Link to comment Share on other sites More sharing options...
ernestoo Posted May 23, 2014 Share Posted May 23, 2014 It's something like:new ByteArrayInputStream(new Base64().decodeBase64($F{Image}.getBytes("UTF-8")))(don’t forget to add org.apache.commons.codec.binary.Base64 to the imports of the report properties)and in the image element on your layout use the ImageBytes variable:http://raygauss.files.wordpress.com/2009/12/jasper-image-element.png?w=300&h=67 (from: http://rgauss.com/2009/12/21/jasperreports-xml-datasource-with-inline-images/) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now