Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are missing after build as jar #753

Open
mssaravanan opened this issue Sep 1, 2021 · 7 comments
Open

Images are missing after build as jar #753

mssaravanan opened this issue Sep 1, 2021 · 7 comments

Comments

@mssaravanan
Copy link

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

@joelk111
Copy link

joelk111 commented Sep 3, 2021

same issue here.

@syjer
Copy link
Contributor

syjer commented Sep 6, 2021

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.

@danfickle
Copy link
Owner

Hi @mssaravanan and @joelk111,

I've commented in #103.

@mssaravanan
Copy link
Author

mssaravanan commented Sep 23, 2021

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.

@syjer
Copy link
Contributor

syjer commented Sep 23, 2021

@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: ?

@mssaravanan
Copy link
Author

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

@danfickle
Copy link
Owner

@mssaravanan, if you are running version 1.0.10 you should get details of the actual exception. Could you post it here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants