I'm not sure that solves my problem.  The problem is that my images
don't have a URL form at all.  When I add one, it doesn't seem to make
one relative.  I do set the base URL with the described method.  How
would I make a relative file URL without the canvas or the transcoder
complaining?

Michael Bishop

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 9:31 AM
To: [email protected]
Cc: [email protected]
Subject: Re: Storing relative URLs?

Hi Michael,

    See my response to Dylan on setting the base url of a Document in 
memory.

"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on

04/21/2006 09:25:19 AM:

> I embed images in my SVG document and until now I?ve just been putting

the 
> filename as the URL:
> 
> xlink:href=?somePic.jpg?
> 
> Batik complains when I try to export the document to a JPG or a PNG 
because it
> can?t determine the URL protocol to use.  The only URL I?ve gotten to 
work is 
> an absolute URL (File.toURL()), but I don?t want to do that.  I store 
things 
> in a temp directory that shouldn?t be referenced when a user saves a 
document.
> Is there a way to get a relative path (relative to the SVG document)? 
file:
> //./somePic.jpg didn?t work and neither did file://somePic.jpg.
> 
> Michael Bishop

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to