How to display Base64 images in HTML?

后端 未结 11 2320
一整个雨季
一整个雨季 2020-11-21 06:10

I\'m having trouble displaying a Base64 image inline.

Can someone point me in the right direction?



  
         


        
11条回答
  •  醉酒成梦
    2020-11-21 06:53

    You need to specify correct Content-type, Content-encoding and charset like

     data:image/jpeg;charset=utf-8;base64, 
    

    according to the syntax of the data URI scheme:

     data:[][;charset=][;base64],
    

提交回复
热议问题