Header and Footer

I am trying to insert an Image as Header and Footer. More like a letter head.
So I uploaded the Image online and used the Image link. However I see that the Image is not showing during email and pdf. It shows up in print and view.

Is there a solution for this. I am using the server version online.

Try inserting the base64 representation of the image instead, directly into the invoice template.

I did the base64 encoding. Image is showing in view, but still not showing in PDF or Email.

The internal PDF generator does not support everything your browser might. When you view on screen, you are seeing a browser presentation. PDFs and emails are both generated by the internal PDF generator, which is not a universal generator. It’s optimized to handle the program in 80-plus languages.