我从文件系统中读取SWF文件并显示到浏览器端出现了一个问题。

我的开始代码是这样的。

response.ContentType = "application/octet-stream";
response.AddHeader("Content-Disposition", "attachment; filename=" + filename);

在flash显示代码中加入改页面路径,结果发现根本flash文件显示不了。

后面到网上找了一下。

上面的代码改成:

response.ContentType = "application/x-shockwave-flash";

这样flash文件就显示出来了。

posted on 2009-06-19 11:51  自由港  阅读(423)  评论(0编辑  收藏  举报