How can I query IIS for MIME Type Mappings?

后端 未结 4 411
情歌与酒
情歌与酒 2020-12-16 01:15

How can I programatically read IIS\'s MIME types? I\'d like to use them when I stream data to my clients using WCF.

Any tips, or API would be appreciated

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 01:28

    As an alternative to reading the registry, or lowering security on the config directory, there is a pre-populated MIME database within the HTML Agility Pack

提交回复
热议问题