[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: image from a jar file

Subject: Re: image from a jar file
From: Rolf Schumacher <mailinglist@xxxxxxxxx>
Date: Fri, 22 Aug 2008 01:55:55 +0200
Re:  image from a jar file
Mauritz Jeanson wrote:
>> -----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
>
>   
Yes, it works that way. Thank you, Mauritz.

Rolf

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.