简体   繁体   English

html资源解释为图片,但以MIME类型image / jpg:base64传输:

[英]html Resource interpreted as Image but transferred with MIME type image/jpg:base64:

This is the jsfiddle 这是jsfiddle

http://jsfiddle.net/Y6Msa/ http://jsfiddle.net/Y6Msa/

The image doesn't appear instead, I got this in the console: 图像没有出现,而是在控制台中显示的:

Resource interpreted as Image but transferred with MIME type image/jpg:base64:

Sorry I couldn't paste the code of the image here, because the base 64 is long so I pasted it in the a jsfiddle 抱歉,我无法在此处粘贴图片代码,因为基数64很长,因此我将其粘贴到jsfiddle中

many thanks 非常感谢

it should be 它应该是

data:image/jpeg;base64,....

you are missing the 'e' - and as later worked out the jsFiddle has ":" wrong before the base64 您丢失了'e'-后来计算出jsFiddle在base64之前有“:”错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 资源被解释为图像,但使用MIME类型text / html appengine进行了转移 - Resource interpreted as Image but transferred with MIME type text/html appengine go 图像随机损坏(但刷新后加载)并显示“资源解释为图像但使用MIME类型text / html传输” - Image randomly corrupt (but load after refresh) and show “Resource interpreted as Image but transferred with MIME type text/html” 资源解释为Image但使用MIME类型application / octet-stream传输 - Resource interpreted as Image but transferred with MIME type application/octet-stream 资源被解释为样式表,但在控制台中以MIME类型text / html错误进行传输 - Resource interpreted as Stylesheet but transferred with MIME type text/html error in console Flask:资源被解释为样式表,但使用 MIME 类型 text/html 传输 - Flask: Resource interpreted as Stylesheet but transferred with MIME type text/html 资源被解释为样式表但使用 MIME 类型 text/html 传输 - Resource interpreted as stylesheet but transferred with MIME type text/html 资源被解释为脚本,但以MIME类型text / html javascript传输 - Resource interpreted as Script but transferred with MIME type text/html javascript 资源被解释为脚本,但在单个站点上以MIME类型text / html传输 - Resource interpreted as Script but transferred with MIME type text/html on individual site 资源解释为样式表,但使用MIME类型text / html - apache2进行传输 - Resource interpreted as Stylesheet but transferred with MIME type text/html - apache2 CSS,.htaccess,资源被解释为样式表,但以MIME类型text / html传输 - CSS, .htaccess, Resource interpreted as Stylesheet but transferred with MIME type text/html
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM