Forum How do I...?

How Do I Display Images From Data URLs

Steve_Fenton
I have an image in my web page that is generated using a data-url - as per the following example:

<img width="16" height="16" alt="star" src="data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7" />

When I convert to PDF, there is a blank space instead of an image. The image appears on the web page in a browser.

Is this an unsupported feature or do I need to set an option somewhere?

Thanks
mikeday
It works for me if I copy and paste this into a HTML document. Can you attach a complete sample document where the image fails to appear?
Steve_Fenton
I'm just working on creating a reproduceable small version of the issue. It does indeed work when I put it through in a test document so I'll try cutting the "proper" document down to a workable example and let you have it.
Steve_Fenton
I found that fixing this problem:

http://www.princexml.com/forum/topic/2506/net-library-conversion-doesnt-match-command-line-version

Also fixed this one too!

Thank you!