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

[resolved] Image Url does not work


m.schroettner

Recommended Posts

Hello, I have some troubles with integrating images into my jasper report. Both Urls are accessible via Browser, but only the first one is printed.

Why does this image expression work:

            <image>
                <reportElement x="60" y="10" width="50" height="50" uuid="cd4bc105-1f9e-4cad-ad4a-4b4b6553958e"/>
                <imageExpression><![CDATA["http://jasperreports.sourceforge.net/jasperreports.png"]]></imageExpression>
            </image>

and this one not - which is also accessible via browser under this url:

            <image>
                <reportElement x="232" y="10" width="50" height="50" uuid="cd4bc105-1f9e-4cad-ad4a-4b4b6553958e"/>
                <imageExpression><![CDATA["https://localhost:9002/medias/logo.png?context=bWFzdGVyfGltYWdlc3wxMzY0OTF8aW1hZ2UvcG5nfGltYWdlcy9oNTYvaGNjLzg3OQ3Mzg0NjkwMzYY2I0Y2I1ZTJlODU4YWM"]]></imageExpression>
            </image>

Does jasper not support https? Or is there another way to include it?

BR

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

hi,

Have you resolved this issue? I meet the same, I use jasper soft 7 final pro, and can't show image by url like this.

example: I want to display "http://www.jasperreports.sourceforge.net/jasperreports.png" to Image Element, but it seem not work with jaspersoft 7.

I see some advice like this:

<image onErrorType="Blank" hyperlinkType="None">
<imageExpression class="java.lang.String">

<![CDATA["http://www.translatorscafe.com/cafe/images/flags/"+$F{Country_ISO3166} +".gif]]>

</imageExpression>

</image>

but with the new version of jaspersoft, when I put code: <imageExpression class="java.lang.String">, it's always disapear.

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