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

Recommended Posts

Hi everybody.

I'm having a problem with loading image into my jasper report. 

The report works fine when I load an normal image url, like http://www.somehost.com/someImage.jpg. The problem is that I need an image loaded from a servlet dynamically. Let's say that I have an storage provider, and the servlet  connect to that provider and download the image, so it can show it to the world. The url, then, is something like http://www.somehost.com/imageServlet?idImage=1234, and if I pass to jasper an url like that, it fails in loading the image.

Does anybody know a solution to this? I've already tried to pass the url as string, as java.net.URL, setting the property isLazy to true, moving the values of evalueation time, and nothing works :( Any idea would be wondeful to me.

PS: I'm using jasperreports 5.0.1

Thank you so much for the attencion.  Best regards.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I have seen you have posted this image loading issue at other forum but it seems that no feasible solution has received. And here I just paste some related links which may help  you download image into jasper. Hope it can offer some useful information.

 

http://stackoverflow.com/questions/2979758/writing-image-to-servlet-response-with-best-performance

http://shakeelstha.blogspot.com/2012/08/dynamic-image-in-jasper-report.html

 

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