public static string GetExtensionMimeType(
string extension
)
Public Shared Function GetExtensionMimeType( _
ByVal extension As String _
) As String
public:
static String^ GetExtensionMimeType(
String^ extension
)
extension
The file format extension requested. This value can be with or without the leading ".".
A string containing the MIME type associated with the specified file format extension.
This method will return the MIME type used with the common file extension extension. For example, ".jpg" or ".jpeg" commonly associated with JPEG raster image files will return the standard "image/jpeg" MIME type, ".pdf" commonly associated with Adobe PDF files will return the standard "application/pdf" MIME type and so forth.
If the extension value is not associated with a known MIME type or is not one of the formats supported by LEADTOOLS, then the general "application/octet-stream" is returned.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document