Jump to content
Changes to the Jaspersoft community edition download ×

New Problem for Displaying Image from Database


yesudas

Recommended Posts

Dear all,

Im facing new kind of problem in displaying image from database.

Im using SQL server,

the images are stored as image data type.

When i use jasper reports, at run time, it throws

error called

 

net.sf.jasperreports.engine.JRException: java.sql.SQLException: Cannot load column class 'byte[]': java.lang.ClassNotFoundException: byte[]

 

But, when i use the .jrml file in IReport, that has been generated at run time , its working fine without any problem or error. Whether the field type is java.awt.Image or java.io.InputStream, its working fine for both.

 

But why its not working in run time?

Please help me na....

I need the solution as early as possible..

Link to comment
Share on other sites

  • 3 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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