Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.8.30
|
Leadtools.Codecs Namespace > RasterCodecs Class : GetExtensionMimeType Method |
'Usage
Dim extension As String Dim value As String value = RasterCodecs.GetExtensionMimeType(extension)
function Leadtools.Codecs.RasterCodecs.GetExtensionMimeType( 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.