Receive Image data as JSON and injecting it into the DOM

后端 未结 3 438
有刺的猬
有刺的猬 2021-02-01 05:53

I am packaging an image into jSON and sending it to the client .... On the client side I wish to display this data as a image ...

I am not sending the Image URL via JSO

3条回答
  •  后悔当初
    2021-02-01 06:26

    You can accomplish this with data URL's in all browsers save for IE7 and below. The basic format is this:

    
    

    You can read more about it here: http://www.websiteoptimization.com/speed/tweak/inline-images/

提交回复
热议问题