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

displaying an image from mssql database in jasper report


adnanbazaz0007
Go to solution Solved by Friendly User,

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

This doesn't tell much. How is the image stored? Is it a BLOB? Is it a URL to the image? The image element supports the following classes:

java.lang.String
java.io.File
java.net.URL
java.io.InputStream
java.awt.Image
net.sf.jasperreports.engine.JRRenderable

You'll need to find a way to convert whatever you have in the database to one of these types and then pass it to image expression

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