Jump to content
Changes to the Jaspersoft community edition download ×

ireports


camiloavila

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

well, our image in the database gave us a byte[]. when we try the image expression (new java.io.ByteArrayInputString[]($F{myfield}))the ireports bring us back this error :

Errors compiling .Reporte_1.jasper!

it.businesslogic.ireport.ReportClassLoader@9d515 509512Â[Thread-25]ÂERRORÂdigester.DigesterÂÂ-ÂParseÂErrorÂatÂlineÂ33ÂcolumnÂ41:ÂAttributeÂvalueÂ"byte[]"ÂofÂtypeÂNMTOKENÂmustÂbeÂaÂnameÂtoken.

sorry but we´re donkies:blush:

Link to comment
Share on other sites

If you use a fairly recent iReport version, you can try to directly set the type of your field to java.awt.Image, the JasperReports engine would read the binary data from the DB and convert it to an image. Then you would simply use $F{MyField} as the image expression.

 

HTH,

Lucian

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...