Is it possible to display svgz on Android?

android, svg, zip

Solution

Yes it should be possible to extract the svg file and visualize it with a small lib called svg-android.

Small Example:

GZIPInputStream is=/*...*/;
PictureDrawable img = SVGParser.getSVGFromInputStream(is, 0, 0)
                               .createPictureDrawable();

Problem

is there a simple way to display SVGZ images within an Android app. I know that there are a few libraries to display SVG images. But they do not support SVGZ as far as I know. In case that there is no library that can display SVGZ images, is it possible to unzip the file with java.util.zip?

Original source