Jump to content
We've recently updated our Privacy Statement, available here ×

bengateau

Members
  • Posts

    3
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by bengateau

  1. Hi Lucian, Yes you are right, I was defining byte array parameter as an object and when I was adding it to the page it was by default added as a String in text field. The byte array was image which I wanted to display on the report, so first I had to convert byte array to ByteArrayInputStream on the Java side, define parameter as type InputStream, and then display it within the image, also as InputStream type. All is good now :) Thank you for your assistance. Regards, Ben
  2. My question should really be how to use parameters with type different from the 13 types listed in the error above? I'd be grateful if someone could tell me how to do that. Thanks, Ben.
  3. Hi all, Using JR 3.1.2, iReport for JR 3.1.2, and Maven plugin for compiling. I have image stored in Java in a byte array and would like to display it in a report. I read here that JR would accept any Java object as a parameter, but I cannot figure how to do it. When defining new parameter (using iReport) only some class types are available, so I chose Object. When I tried to add this filed to "Last Page Footer", program was changing the type to String. I can change it manually, but then I'm getting: Error compiling report design : c:reportssrcmainjasperreportsuser.jrxml : org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'java.lang.Object' is not facet-valid with respect to enumeration '[java.lang.Boolean, java.lang.Byte, java.util.Date, java.sql.Timestamp, java.sql.Time, java.lang.Double, java.lang.Float, java.lang.Integer, java.lang.Long, java.lang.Short, java.math.BigDecima l, java.lang.Number, java.lang.String]'. It must be a value from the enumeration. Any suggestions how to accomplish this? I was trying to use Byte instead of the Object, but then I was getting CastingException. Thank you for reading. Cheers, Ben
×
×
  • Create New...