Hi,
Something like this: <fo:block><fo:external-graphic src="url('data:application/pdf;base64,data')" /></fo:block> Thanks From: Markus Ruggiero <mailingli...@kataputt.com> Sent: 26 March 2021 14:44 To: fop-users@xmlgraphics.apache.org Subject: Re: Embed image from database, not from file Sounds great. How would that look like? How would I embed the data in the xml and then reference from xsl? Thanks a lot On 26 Mar 2021, at 15:08, Simon Steiner <simonsteiner1...@gmail.com <mailto:simonsteiner1...@gmail.com> > wrote: Hi, The uri can be a data url also Thanks -----Original Message----- From: Markus Ruggiero <mailingli...@kataputt.com <mailto:mailingli...@kataputt.com> > Sent: 26 March 2021 13:45 To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> Subject: Embed image from database, not from file Folks, I have image data stored in a database, not as a file. It is JPEG data in Base64 encoding. My understanding is that with fo.external-graphic I can only use a proper file url for the image reference - but there is no file in my case. Is there any other way to embed image data in the PDF output? Can I somehow put the image data into the input xml data file and pull it from there? Thanks for any help ---markus--- --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org <mailto:fop-users-unsubscr...@xmlgraphics.apache.org> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org <mailto:fop-users-h...@xmlgraphics.apache.org> --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org <mailto:fop-users-unsubscr...@xmlgraphics.apache.org> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org <mailto:fop-users-h...@xmlgraphics.apache.org>