Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 527

Store an SVG image in JSON or not?

$
0
0

I do not know if I'm asking in the correct "Stack", but at the moment I seem to be the most appropriate one. Let me also note if I'm wrong, I'll immediately move the question to another Stack.

I need to save a vector image (most likely it will be SVG format). We are considering how to memorize this image. The point is that we prefer to use only a JSON file, which means that you have to convert the SVG image to at least Base64, but is it lossless or not?

The alternative would be to save the local path of this SVG image in a field in the JSON file. This image and JSON files should not be sent over the network and conversion from Bas64 to SVG should not be too slow considering a PC environment. Based on your experiences, what do you recommend doing?


Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>