I'd implement a custom protocol handler in a way that you can access your images in the database using a URL that could look like this:
myimages://mydatabase/<id> (where <id> might be the primary key to the image). This way you don't have to encode anything because you're getting a binary stream directly from the blob in the database. And you're not bound to XML. Every Java application (ex. a Servlet or a JSP) can refer to this kind of URL once it is implemented and registered. I've already written a couple of protocol handlers and I'm very happy with the results. A good tutorial on Protocol Handlers can be found here. http://developer.java.sun.com/developer/onlineTraining/protocolhandlers/ > I'm working with FOP 20.3. As input I have a xml-stream and a > xsl-File. > Now I would like to have an image in my xml, not in the xsl. > The image comes from a database. Is there any possibility to do > that, without > writing the image in a file ? > How have I to encode it, for Fop ? Cheers, Jeremias M�rki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
