Stupi / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

XHTML <img> tag with base64 support #193

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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