chrome资源被解释为图像,但通过mime类型application/octet-stream传输 [英] chrome resource interpreted as image but transferred with mime type application/octet-stream

查看:608
本文介绍了chrome资源被解释为图像,但通过mime类型application/octet-stream传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,在我的应用程序中,我们使用了图像缩放选项.当使用javascript单击图像时,它将缩放图像.这在所有浏览器中都可以正常工作,但是在chrome中,当我单击图像时它不显示图像(在控制台窗口中,其错误显示为资源被解释为图像,但通过mime类型application/octet-stream传输").我看到iis设置png的mime类型为image/png.那么,为什么它不起作用是什么问题呢? .

请帮助我解决此问题.

hi friends, in my application we are using the image zoom option.when click on image using javascript it will zoom the image.this is working fine in all the browsers but in chrome when i click on image its not showing the image (in console window its showing the error as "resource interpreted as image but transferred with mime type application/octet-stream" ).i saw the iis setting mime type for png is image/png.then what is the problem why its not working.

please help me to solve this issue.

推荐答案

嗨!

使用Chrome似乎是一个常见问题,尤其是在使用Visual Studio Web服务器时.我为您进行了一些调查,认为这些链接可能会对您有所帮助:


Chrome中针对png图像的MIME类型警告
[控制台解释了消息资源作为图片,但通过mime转移了 [
Hi!

This seems to be a common problem using Chrome, especially while using the Visual Studio web server. I did some investigating for you and think these links may help you out:


MIME-Type warning in Chrome for png images
[^]

Console Message resource interpreted as image but transferred with mime[^]

If this error is causing issues, try configuring your MIME settings. Depending on what server/application you are using, you may need to change the settings differently.

Good luck!


这篇关于chrome资源被解释为图像,但通过mime类型application/octet-stream传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆