Error processing SSI file
LEADTOOLS Image File Support (Leadtools.Codecs assembly)

Show in webframe

GetExtensionMimeType Method








The file format extension requested. This value can be with or without the leading ".".
Gets the MIME type associated with the specified file format extension.
Syntax
public static string GetExtensionMimeType( 
   string extension
)
'Declaration
 
Public Shared Function GetExtensionMimeType( _
   ByVal extension As String _
) As String
'Usage
 
Dim extension As String
Dim value As String
 
value = RasterCodecs.GetExtensionMimeType(extension)
public static string GetExtensionMimeType( 
   string extension
)
 function Leadtools.Codecs.RasterCodecs.GetExtensionMimeType( 
   extension 
)
public:
static String^ GetExtensionMimeType( 
   String^ extension
) 

Parameters

extension
The file format extension requested. This value can be with or without the leading ".".

Return Value

A string containing the MIME type associated with the specified file format extension.
Remarks

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.

Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
RasterCodecs.GetMimeTypeExtension
CodecsLoadOptions.Name
RasterCodecs.GetExtension

Error processing SSI file