How to add dynamic image in jasper report using jasper studio.Database is postgresql
image is stored in bytea format
how to display that image in jasper report.
How to solve this?? is there any other method?
data base query ->
select encode(image,'escape') as img,id from entity_image where entity_id = 100
image expression-> new java.io.ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64($F{image}.getBytes()))