The image from a database requires a little sleuthing on the iReport forum … but her is my approach.
Try this:
Assume that the BLOB field/column in the database is called “product_image”:
- create a variable(give it a name such as “productImage”
- specify the type to be java.io.InputStream
- define the variable expression to use: ```
new java.io.ByteArrayInputStream((byte)$F{product_image})
4. specify an image to be placed on the design - do not specify any file location
5. for the image properties specify the expression class as java.io.InputStream
5. specify the image expression as the variable "productImage"
6. adjust other image properties to suit.
I tested this with iReport 3.5.0 <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />
Tom