How do you insert images into an XML file?

-1

Hello, I have a file in xml, and I would like to know how to insert an image into it, could anyone help?

    
asked by anonymous 17.10.2017 / 21:36

1 answer

0

XML is practically a text-based format, which means you can not "see the image" in your XML document.

You can turn the image into Base64 and embed the string in XML.

UPDATE

First , you transform the image into Base64 here: link

After just paste within the div img <img>data:image/png;base64,....</img> the site code above.

    
18.10.2017 / 19:33