Re: Relative path in SVG DOM

2017-08-21 Thread Two Way Communications via 4D_Tech
Hi Ortwin, Thanks. The embedded image would do the trick. The problem is that the image can be selected by the end-user, and that image can get quite big. And then, drawing or refreshing the SVG will be very, very slow. Regards, Rudy Mortier Two Way Communications bvba -

Re: Relative path in SVG DOM

2017-08-11 Thread Two Way Communications via 4D_Tech
Thanks Keisuke. I will need to find a way of storing the picture files in the database and extracting them and writing them to a file when needed. I especially have some concerns when working in client-server mode. Regards, Rudy Mortier Two Way Communications bvba - > On

Re: Relative path in SVG DOM

2017-08-10 Thread Ortwin Zillgen via 4D_Tech
> The thing is that the SVG is actually an interactive map. > > So when I load the SVG from a blob field, then where does it go to find the > file with the relative path ‘../Image.jpg’ ? if the SVG is displayed in a webarea, save the SVG to disk in a location appropriate to the relative path

Re: Relative path in SVG DOM

2017-08-10 Thread Keisuke Miyako via 4D_Tech
unless there is a way to define the base URL, I don't think it is possible to specify relative paths in SVG which is itself not a file on disk. my guess would be that the path is considered a name, searched in the current directory of the executable. unless the SVG is a file on disk, I think

Re: Relative path in SVG DOM

2017-08-10 Thread Two Way Communications via 4D_Tech
Hi Keisuke, Ok, that puts it into perspective ;-) The thing is that the SVG is actually an interactive map. So when I load the SVG from a blob field, then where does it go to find the file with the relative path ‘../Image.jpg’ ? Regards, Rudy Mortier Two Way Communications bvba

Re: Relative path in SVG DOM

2017-08-09 Thread Keisuke Miyako via 4D_Tech
the doc could have been worded better, I suppose. relative path means relative to the SVG image file. the doc assumes your SVG is itself inside the Resources folder, in fact at the top level. > 2017/08/09 18:55、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> > のメール: > No, it isn’t.

Re: Relative path in SVG DOM

2017-08-09 Thread Two Way Communications via 4D_Tech
Hi Keisuke, No, it isn’t. It is created with ’SVG_New’. The picture is inside a folder ‘Map_pictures’ inside the database folder. When I use either the full path to the picture file, or embed it inside the SVG, the picture shows. But for obvious reasons I want to use a relative path. I have

Re: Relative path in SVG DOM

2017-08-08 Thread Keisuke Miyako via 4D_Tech
is your SVG image itself a file inside the Resources folder? > 2017/08/09 2:45、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> > のメール: > However, if I put this inside the xlink:href attribute of the image, it does > not show up in the SVG.

Relative path in SVG DOM

2017-08-08 Thread Two Way Communications via 4D_Tech
I am trying to use a relative path to a picture file that is stored locally, in the database folder. According to the documentation: A relative URL ("../picture.png"). This is particularly useful in client/server mode, when files are stored in the "Resources" folder. Relatives URLs can begin