Both worked, thanks very much.
Marci
Thomas DeWeese wrote:
Hi Horváth,
First, I would try making the image reference a 'relative' reference
so make it just 'e.jpg' and put it in the same directory as the
SVG document (this is almost always the right thing to do then you
can move it around without a problem). If you really want to try and
use absolute refs I don't think either of your examples is technically
correct, I think it should be: 'file:///C:/e.jpg'
Good luck.
Horváth Marci wrote:
Hi
My problem is:
I can't load local image in an svg file with (for example)
Batik-Squiggle 1.5.1. (or my app using batik).
I can load the same svg properly with Adobe SVG Viewer.
No error's thrown by Squiggle. Instead of the jpg image, there's a
"broken batik logo".
Loading image in the svg from the web works with Squiggle too.
(xlink:href="http://......")
I had an idea that's a java security problem, but i can load local
images otherwise. What security problem is it?
the example svg:
<?xml version="1.0" encoding="UTF-8"?>
<svg contentScriptType="text/ecmascript"
width="2500"
xmlns:xlink="http://www.w3.org/1999/xlink"
zoomAndPan="magnify" contentStyleType="text/css"
height="2500"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
version="1.0">
<g id="imageroot">
<image x="0" y="0"
width="100"
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="C:/e.jpg"
height="100"/>
</g>
</svg>
(c:/e.jpg is valid, and i also tried file://c:/e.jpg)
Thanks for any suggestions/solutions, or what/why it is happening.
bye, Marci
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]