m.schroettner Posted October 12, 2021 Share Posted October 12, 2021 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 More sharing options...
Junaid_Rehman Posted October 13, 2021 Share Posted October 13, 2021 hi, Link to comment Share on other sites More sharing options...
Junaid_Rehman Posted October 13, 2021 Share Posted October 13, 2021 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 More sharing options...
m.schroettner Posted October 13, 2021 Author Share Posted October 13, 2021 No not resolved - and yes the class="java.lang.String" also disappears for me. Link to comment Share on other sites More sharing options...
m.schroettner Posted October 14, 2021 Author Share Posted October 14, 2021 my problem was that JR can't resolve the localhost url - generated report in my java application: works. No java.lang.String is needed. @Junaid_Rheman I can only guess that your url is not correctly appended Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now