Subject: RE: image from a jar file
From: "Mauritz Jeanson" <mj@xxxxxxxxxxxxxxx>
Date: Mon, 18 Aug 2008 20:33:48 +0200
|
> -----Original Message-----
> From: Rolf Schumacher
>
> I'm using Xalan and fop embedded to a Java application.
> The application is distributed as a jar file.
> It uses some images, e.g. logos, that are contained in the
> jar file for
> convenience.
> What URL to put in the "src" attribute of fo:external-graphic in order
> to include it?
Something like this:
<fo:external-graphic src="jar:file:///foo/bar.jar!/baz/logo.jpg"/>
See http://java.sun.com/javase/6/docs/api/java/net/JarURLConnection.html
/MJ
|