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

Image in XML datasource to *.jrxml.?


Recommended Posts

By: zoran_k - zoran_k

Image in XML datasource to *.jrxml.?

2006-02-08 08:13

In XML datasource file I keep a Image(jpeg, mpg...) like Base64.coded string, in a particular tag (for exam. <image> kdsksdkf35gfs45tkdjkjs...</image>).

All of other data is in a same XML data source.

Q:

What have to be in a definitions of image element or chart element in a *.jrxml of my report to accept primitiv object byte[](Base64.decodeed string) from previouse stored image.

In a short:

Image is coded in a string and put ina XML datasource file. I must define image element in jrxml? During of procesing a jasper file, I decode that string in a byte[]. How to regulate def. of image or chart elements in *.jrxml? Is it possible to reconcile byte[] stream and image or chart element in a jrxml.

 

Thank's in advance.

 

 

 

 

 

By: Lucian Chirita - lucianc

RE: Image in XML datasource to *.jrxml.?

2006-02-08 09:15

There are at least two ways to do it:

- new ByteArrayInputStream(byte[])

- JRImageLoader.loadImage(byte[])

 

HTH,

Lucian

 

 

 

 

By: zoran_k - zoran_k

RE: Image in XML datasource to *.jrxml.?

2006-02-10 04:48

Thank's again!

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