Jump to content
Changes to the Jaspersoft community edition download ×

load image from input stream, not classpath


ivan.bolcina

Recommended Posts

Hi. 

I have an report and I render it using library, not server.

If I add static image on it, flower.png, and put flower.png in jar, it will be accesible via classpath and will be rendered OK.

If I don't have image in classpath, it will throw exception.

 

I would like register an resource (repository or something like this) provider with Jasper, so that when Jasper would need flower.png, it would ask my provider for this resource (flower.png),my provider would go to my repository, fetch image from it, and feed it back to Jasper.

I guess this has to do something with StreamRepositoryService,but i can not register it correctly.

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