openhtmltopdf
openhtmltopdf copied to clipboard
Images are missing after build as jar
Code:
<div class="logo-container"> <img src="https://www.xxxyyy.com/images/logo.png" alt="CompanyName"/> </div>
Error: com.openhtmltopdf.exception WARNING:: IO problem for https://www.xxxyyy.com/images/logo.png
same issue here.
hi @mssaravanan do you have the full stracktrace?
It may be possible that you have some kind of proxy in between which is configured correctly when running from the IDE vs running outside as a jar.
Hi @mssaravanan and @joelk111,
I've commented in #103.
I have set the image from the spring boot resource folder it is working in the jar and docker image.
@syjer I have run the JAR and the application from IDE in the same environment, URL(HTTP and HTTPS) image not loaded in the JAR application.
@mssaravanan
If you say spring boot resource folder
then the url is not an external (http or https) one right? What protocol are you using? file: ?
@syjer
I'm saying, the image src is from the spring-boot resource folder
it's working, but not in the HTTP or HTTPS image URL.
@mssaravanan, if you are running version 1.0.10
you should get details of the actual exception. Could you post it here?