Jump to content

Creating an image from the stream encoded in base 64


jmc2

Recommended Posts

Hello,

I want a report to embed a GIG image in it.

The image is read from a database. The image data stream, is base64 encoded in the database.

 

1) In iReport (4.0.1), I set the database field (Type BLOB in database) expressions class to java.io.inputStream

2) Then i created an image field in the document mapped to the database field

3) The next step should be to write a small script calling the render engine (net.sf.jasperreports.engine.JRRenderer interface ?) but i don't to processe base64 convertion prior to render the image ?

Many Thanks.

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