将字节流式传输到浏览器时,图像不显示,内容类型为message / rfc822,格式为HTML,内联配置 [英] images not displayed when streaming bytes into browser with content type message/rfc822 , rendition HTML and disposition inline

查看:123
本文介绍了将字节流式传输到浏览器时,图像不显示,内容类型为message / rfc822,格式为HTML,内联配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   我文档中的图片
以HTML格式查看时不显示。我将ms word文件流式传输到浏览器中,内容类型设置为message / rfc822,并且处置是内联的。如果我将配置更改为附件,它可以正常工作并在本机应用程序中正确打开。但
Im需要以HTML格式内联打开文件。该问题仅在XP和WIndows 2003服务器环境中出现。在Win 7和Windows 2008服务器上它工作正常。  我已检查/删除了所有防火墙和安全设置,但它似乎没有使
产生任何影响。有什么建议吗?

解决方案


这个论坛是关于html的问题, css和脚本...我们需要查看您的页面标记以及您用来托管流内容的元素。


在我的localhost(IIS  6)  message / rfc882 mime type与.eml,.mht,.mhtml文件类型相关联....检查2003服务器IIS上的mime类型设置6.从我的硬盘中单击eml文件将在我的默认邮件客户端中打开... Windows Live
Mail。


即客户端使用mime-sniffing以及文件扩展名来确定要使用的'opener'应用程序....确保使用默认的IE Security区域设置...工具> Internet选项>安全选项卡,单击"将所有区域重置为默认值"...比较
XP和Win7客户端之间的安全区域设置。


< IE> IE还有不安全文件类型的安全区域设置....我不知道如何处理它XP上的IE8 ...来自内存的eml文件类型在内部的不安全文件列表中....


还检查客户端上的文件关联以获取上述文件类型和默认文件开启者应用程序...在XP上,默认邮件客户端是Outlook Express。


我希望在你的页面标记中使用自定义ActiveX控件或iframe来呈现eml文件。


  The images in my document are not displayed while viewing in HTML format. Im streaming ms word file into browser with content type set to message/rfc822 and disposition is inline. If I change the dispostion to attachment it works fine and opens in native application correctly. But Im required to open the file inline in HTML format. The issue is seen only on XP and WIndows 2003 server environments. On Win 7 and Windows 2008 server it works fine.  I have checked/removed all firewall and security settings but it does not seem to make any impact. Any suggestions, please?

解决方案

Hi,

this forum is for questions about html, css and scripting... we need to see your page markup and which element you are using to host the streamed content.

On my localhost(IIS 6) message/rfc882 mime type is associated with .eml, .mht, .mhtml file types.... Inspect the mime-type settings on your 2003 server IIS 6. Clicking on an eml file from my harddisk opens in my default mail client... Windows Live Mail.

Ie clients use mime-sniffing as well as the file extension to determine what 'opener' application to use.... ensure you are using the default IE Security zone settings... Tools>Internet Options>Security tab, click "Reset all zones to default"... compare the security zone settings between the XP and Win7 clients.

IE also has security zone settings for Unsafe File types.... I am not sure how this is handled in IE8 on XP... from memory eml file types were in the internal Unsafe files list....

Also check the file associations on the client for the above files types and the default file opener application... on XP the default mail client is Outlook Express.

I would expect in your page markup you are using a custom ActiveX control or an iframe to render eml files.


这篇关于将字节流式传输到浏览器时,图像不显示,内容类型为message / rfc822,格式为HTML,内联配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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