我可以用什么mime类型的.msg文件? [英] what mime type can I use for .msg files?

查看:662
本文介绍了我可以用什么mime类型的.msg文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个文件附件功能,允许用户附加.msg文件等。我无法找到合适的mime类型来查看附加文件。

There is a file attachment feature that allows users to attach .msg files, among others. I'm not able to find the right mime type to view the attached files.

我尝试在IIS中添加.msg mime类型,为.msg添加了一个注册表项HKEY_CLASSES_ROOT \MIME \Database \Content Type。但似乎没有任何效果。

I've tried adding a .msg mime type in the IIS, adding a registry key for .msg in the HKEY_CLASSES_ROOT\MIME\Database\Content Type. But nothing seems to work.

我尝试使用以下MIME类型:

I've tried using the following MIME types:

1。 appliation / x-msg(我将此添加到注册表但它不起作用)

1. appliation/x-msg (I added this to the registry but it didn't work)

2。 application / outlook(我尝试将其添加到IIS mime类型)

2. application/outlook(I tried adding this to the IIS mime type)

3。 message / rfc822

3. message/rfc822

4.zz-application / zz-winassoc-MSG

4.zz-application/zz-winassoc-MSG

5。 applicaiton / msoutlook

5. applicaiton/msoutlook

这些都没有奏效。任何sugesstions?我也尝试使用类似"text / HTML"的通用mime类型,但我只能看到垃圾。我将文件保存在SQL Server 2005数据库中作为图像。这种方法适用于除.msg文件以外的所有其他类型的文件。

None of these have worked. Any sugesstions? I also tried using a generic mime type like "text/HTML", but I could only see garbage. I'm saving the file in  a SQL server 2005 database as a image. This approach works with every other kind of file except a .msg file.

这是我的代码片段:

响应。 ContentType = " application / x-msg" ;

Response.ContentType = "application/x-msg";

Response.BinaryWrite(imgBinaryData);

Response.BinaryWrite(imgBinaryData);

Response.End();

Response.End();

谢谢。

 

推荐答案

我是这个帖子。转移到网络论坛。希望他们至少能指出你正确的方向。

I'm this thread. moving to the networking forum.  Hopefully they can at least point you in the right direction.

谢谢。


这篇关于我可以用什么mime类型的.msg文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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