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

前端 未结 3 1597
囚心锁ツ
囚心锁ツ 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 04:05

    In fact, even if you supply correct MIME type, Chrome, Firefox and Opera do not support .TIF files natively: they require a plugin to deal with them.

    There's a useful summary of browser support for image files here: http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support

提交回复
热议问题