MaikJaek/flying-saucer

XHTML <img> tag with base64 support

Opened this issue · 3 comments

Currently, embedding base64 images isn't supported in Flying Saucer. 

<img src="data:image/png;base64,<BASE64_CONTENT>"/>

Original issue reported on code.google.com by rfkroc...@gmail.com on 14 Mar 2012 at 4:19

There's a gist on github that shows how to do this quite easily for both PDF 
and Image rendering: 

https://gist.github.com/915348#comments

Original comment by ryeb...@gmail.com on 18 May 2012 at 8:11

[deleted comment]
From 
http://stackoverflow.com/questions/10840959/render-embedded-image-in-pdf-using-f
lying-saucer-from-html :
"""
Flying-Saucer supports the data: protocol natively. All you have to do is 
register a protocol handler:

-Djava.protocol.handler.pkgs=org.xhtmlrenderer.protocols

No need for servlets whatsoverver.
"""

Original comment by stevenro...@gmail.com on 30 Aug 2013 at 3:48