Hi Boris,
You need to add the SVG into your project and then can use it where ever you want within the project locally. Please have a look into custom images in Mendix documentation for more details.
If you want to save an SVG into your database as an image then,
I tried this as an example using https://codepen.io/osublake/pen/OMRdKq and it works great, see screenshots below.
Hope this helps!
Hi,
You can make a widget that should use html2canvas.js to capture an dom element (in your case the svg) and save it in Mendix as a file.
Have done such before, but I don't have an example right now.