Jump to content
Changes to the Jaspersoft community edition download ×

Problems with java.awt.Image support....


Recommended Posts

By: Anthony Presley - blurngr

Problems with java.awt.Image support....

2006-04-18 16:08

I'm trying to develop a new report using a byte[] array (BLOB) from our database.

 

After reading some of the threads, I understand that I can simply call the query as:

"SELECT byteArray from blob"

 

And in the JRXML, declare:

<field name="byteArray" class="java.awt.Image"/>

 

However, when I do this, I get this error:

Unable to get value for field 'byteArray' of class 'java.awt.Image'

 

The image is a one-page TIFF file.

 

Any ideas?

 

 

 

 

By: Anthony Presley - blurngr

RE: Problems with java.awt.Image support....

2006-04-20 14:06

Just so we are all clear ...

 

I modified the code to be a java.io.InputStream, rather than java.awt.Image, and it works.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...