0

How to save image in xml file

How can I save image in xml database? I convert it to bytes and save it but its size become very more than its original file. forexample: 200kb -> 9mb 70kb -> 3mb

10th May 2018, 1:37 PM
Amir Hossein
Amir Hossein - avatar
1 Resposta
+ 2
You shouldn't use XML to store images. Rather save them on a server and store the path to the images in XML.
10th May 2018, 4:29 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar