Jump to content
Changes to the Jaspersoft community edition download ×

<Image> and <Image Expression> Problem!!!!


Recommended Posts

By: Hiu Yen Onn - yenonn

<Image> and <Image Expression> Problem!!!!

2003-05-05 23:05

I have an image with image expression of type java.io.InputStream.

 

i put my image on the page header part. The image only appearing on the first page, but then, on the second page, the image is disappearing.

 

pls help!!! this is urgent....

thanks

 

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: <Image> and <Image Expression> Problem!!!!

2003-05-06 00:00

 

Hi,

 

I think InputStream objects should be used only

for images that display once.

 

This is because when displaying the image for the

first time in the report, the information found in the

InputStream is consumed.

The second time the image has to display,

the pointer within the InputStream is already

at the end.

 

A sloution would be to load a java.awt.Image from

the subreport and use that object in the image expression.

 

Or just supply the filename of the image if it is the case.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Teodor Danciu - teodord

RE: <Image> and <Image Expression> Problem!!!!

2003-05-06 00:07

 

I meant:

 

"A solution would be to load a java.awt.Image from

the InputStream and use that object in the image expression."

 

 

 

 

 

By: Hiu Yen Onn - yenonn

RE: <Image> and <Image Expression> Problem!!!!

2003-05-06 04:38

thanks, it works perfectly for me... thanks for ur consults

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