Confusin在Response.ContentType中 [英] Confusin in Response.ContentType

查看:100
本文介绍了Confusin在Response.ContentType中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Response.ContentType中octet-stream的重要性



1.它是否会提供打开文件或直接保存/下载的选项?

2.如果我没有Excel,我可以在OpenOffice电子表格中保存.xls文件吗?

Importance of "octet-stream" in Response.ContentType

1. Will it give the option to Open file or Directly to Save/Download?
2. If i dont have Ms Excel, can i save .xls file in OpenOffice Spreadsheet?

推荐答案

请检查以下内容

http://msdn.microsoft.com/en-us/library/ms775147.aspx [ ^ ]
Please check the following
http://msdn.microsoft.com/en-us/library/ms775147.aspx[^]


application / octet-stream 用于文件下载。当我最后一次尝试AFAIK时,它曾经给出一个确认框,询问是否需要在某个位置打开或保存。如果您说打开,它将被下载到临时文件中,并且附加到该扩展名的默认进程将尝试打开它。
application/octet-stream is for file downloading. When I tried last, AFAIK, it used to give a confirmation box asking if it needs to be opened or saved in some location. If you say open, it is downloaded in temp file and the default process attached to that extension will try to open it.


这篇关于Confusin在Response.ContentType中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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