ASP.NET 和 IIS 如何将
转换为
标签在浏览器中变成图像文件?
ASP.NET 和 IIS 如何将
标记转换为浏览器中的图像文件?
我假设它根据路径找到文件并呈现 FileStream。我没有看到在 web.config 中注册任何处理程序,并且我的 IIS6 配置没有任何有关 .jpg、.gif、.png 等扩展名的内容。
编辑: 另外,这个过程如何定制?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
浏览器发送对
/path/to/page/localresource.jpg
的请求。IIS 找到该文件,在其默认 MIME 类型映射中查找
.jpg
的 MIME 类型,然后提供该文件。ASP.Net 和 .Net 框架都不涉及。 (除非你将它们设置为)
The browser sends a request for
/path/to/page/localresource.jpg
.IIS finds the file, looks up the MIME type for
.jpg
in its default MIME-type mapping, and serves the file.Neither ASP.Net nor the .Net framework are involved. (unless you set them to be)