I
I
ImagoGroup2011-07-06 11:28:56
JavaScript
ImagoGroup, 2011-07-06 11:28:56

JavaScript and SVGZ

There is a loaded XMLHttpReques'om SVGZ archive.
Is it possible to convert it to SVGElement using DOM methods without using third party libraries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Q
Quadratoff, 2011-07-07
@Quadratoff

If on the server, giving this archive, add http headers: then the archive will be transferred over the network, and the browser will automatically decompress it itself.
Content-Encoding: gzip
Content-Type: image/svg+xml

O
Oleg Torbasov, 2011-08-12
@torbasow

Theoretically, it is not excluded. You can try writing it to an SVG element via the data:. Practically - I do not know, I have not tried it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question