I was searching for a way to get the MIME type of a file by file extension and .NET Framework 4.5 comes to the rescue. You can make use of API GetMimeMapping which is found in the .NET Framework 4.5 System.Web.dll Here is the documentation of it: MimeMapping.GetMimeMapping Method. Example on how you can use it:
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: