Store an image in database

Hi!

I'm currently developing an application in Objective-C and I have a problem. I would like store images in a database but the size of the images should be as small as possible. So, I try to encode PNG files to Base64 but, it's too long (it's over 120MB). I have tought and I would like try with SVG files but I don't find a mean to use it (Framework, Libraries, ...). Can you help me?


Note: The size of my SVG files is between 17kB to 7kB

I get data on my application. For example, for a historical monument, I get its name, its description and I also get an image in svg. And I want to store all this in my database. So, I don't find a mean to store the image in svg.

svg seem to bring some limitations as well as performzance issues:

h ttps://forums.developer.apple.com/thread/72838


Why not use jpg ? With adequate compression, you will reduce image size by 10x, without much quality loss.

Oh ok because I was thinking store the content of SVG then when I want recover it and display it, I was thinking there would be a tool to convert it to PNG.

Thank you for your answer!


EDIT: I tried with jpg but ithe base64 is too long also : over 30kB

Store an image in database
 
 
Q