←Select platform

GetMimeTypeExtension Method

Summary
Gets the default extension for the specified MIME type.
Syntax
C#
C++/CLI
Python
public static string GetMimeTypeExtension( 
   string mimeType 
) 
public: 
static String^ GetMimeTypeExtension(  
   String^ mimeType 
)  
def GetMimeTypeExtension(self,mimeType): 

Parameters

mimeType
The MIME type requested.

Return Value

A string containing the file extension for the specified MIME type (without the ".").

Remarks

This method will return the default file extension commonly used with file of types  mimeType. For example, "image/jpeg" MIME type (JPEG raster image files) commonly have "jpg" extensions, "application/pdf" (Adobe PDF files) commonly have "pdf" extensions and so forth.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.