Currently I am working on iReport, using MySql DB.
I am saving the image as a String id using servlet, not exactly the image name (like helal.JPG). But i cannot rendered this as a image on iReport.
Can anyone please help?
Currently I am working on iReport, using MySql DB.
I am saving the image as a String id using servlet, not exactly the image name (like helal.JPG). But i cannot rendered this as a image on iReport.
Can anyone please help?
For image 200 x 300 use <imageExpression>
with String parameter.
E.g.
<parameter name="IMG_PATH" class="java.lang.String"></parameter>
...
<image ...>
<reportElement x="0" y="0" width="200" height="300"/>
<imageExpression class="java.lang.String">
<![CDATA[$P{IMG_PATH}]]>
</imageExpression>
</image>
See also http://jasperreports.sourceforge.net/sample.reference/images/index.html