Javascript Hex String to Image

后端 未结 2 1455
轮回少年
轮回少年 2020-12-16 08:24

I\'ll cut right to the chase. Right now I am developing a web based application. It has a PHP REST based architecture that serves up XML documents. On many of these document

2条回答
  •  轮回少年
    2020-12-16 08:54

    Encode the images using base64 and write them out in a CDATA string into your XML with this format:

    data:[][;charset=""][;base64],0123456789abcdefg...
    

    When constructing your document, use this string as your src

    
    

提交回复
热议问题