On 10 Jun 2009, at 16:43, Sam Fuqua wrote:

Hi Sam

I know that external-graphics can be added in a couple different ways. One is to have the image on a file system and the other is to use a URL. Is there any way to obtain the external-graphic through a bytestream? Or any way to dump a binary file into the FO to be rendered? Any help or input is appreciated.

Besides using the 'data:' URI scheme, as Manuel suggested, another possibility is to 'invent' a URI scheme of your own. If you implement a custom javax.xml.transform.URIResolver and register it with FOP, you can basically do anything to resolve URIs with a specialized prefix of your own choosing.

To register it with FOP, this can only be done when embedding, as described here:
http://xmlgraphics.apache.org/fop/trunk/embedding.html#fop-factory


HTH!

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to