Hi Schneider,
"Schneider, Volker" <[EMAIL PROTECTED]> wrote on 02/15/2006
02:04:08 AM:
> thank you for your reply. Now I've got it: It was really the URL.
>
> I tried something like "file://d:/java/BatikTest/deutschland.svg", but I
never tried:
>
> "file:/d:/java/BatikTest/deutschland.cvg", to say that the "file"
protocol is
> only accepted with 1 (!) slash after the colon!!!
Actually the 'correct' form of a file URL is:
file:///d:/<blah>
With 3, yes three slashes, if you look at an http
URL it looks like; "http://<ip>/<path>)" a file URL
has an empty 'ip' field.
> Very strange, but now it is working.
>
> Thank you, best regards
> - Volker -
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 15. Februar 2006 01:28
> An: [email protected]
> Cc: [email protected]
> Betreff: Re: Cannot load SVG file
>
> Hi Volker,
>
> "Schneider, Volker" <[EMAIL PROTECTED]> wrote on 02/14/2006
> 07:45:38 AM:
>
> > I tried some other files, but no file could be loaded.
> > What can be wrong?
> >
> > I tried different syntax for the file name, but did not succeed yet (I
> am
> > running out of ideas...).
>
> > //---- load the svg file
> > theSVGComp.loadSVGDocument("deutschland.svg");
>
> 'deutschland.svg' is not a URL. For files I tend to
> construct a 'File' object and then get a URL from it (you
> might check that the file named really exists using the
> File interface methods).
>
>
> ---------------------------------------------------------------------
> 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]