Firefox and Chrome won't decode base64 image or pdf files

前端 未结 3 1667
囚心锁ツ
囚心锁ツ 2021-02-11 03:29

I\'m trying to decode a base64 encoded images on the browser by using the data uri scheme.

This is what my html looks like:



        
3条回答
  •  半阙折子戏
    2021-02-11 03:52

    Chrome and Firefox can, very likely, open TIF images -- if you tell them, they are TIF images. Currently in your example you are telling them, they are PNG images, which ought to be the problem... Try:

    base64 image name
    

提交回复
热议问题