I embed images in my SVG document and until now I’ve just been putting the filename as the URL:

 

xlink:href="">

 

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

Reply via email to