I have a text field in my table that has a value of base64image like this:
iVBORw0KGgoAAAANSUhEUgAAAKAAAABQCAYAAACeXX40AAAAAXNSR0IArs4c6QAAABxpRE9UAAAAAgAAAAAAAAAoAAAAKAAAACgAAAAoAAABm0Xg9YIAAAFnSURBVHgB7NQ/S4VQGMfxe9N7FTEh8M+kIoI2NDdLNATqIthYBwIHx6C5qaGhXkWTryR6Ib0Ne25g3MXbJnf4HvghBx
How can I display an image reading this field in iReport 4.0.1? I used the guideline in this but didn't work. it throws following error:
SimpleJasperReportsContext cannot be resolved to a type
even if I import the required classes to xml file as:
<import value="org.apache.commons.codec.binary.Base64"/>
and add this to my ImageExpression value:
new ByteArrayInputStream(Base64.decodeBase64($F{out_sign_in}.getBytes()))
I get the following error:
Base64 cannot be resolved
This link solved my problem