Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / GetMIMEFromFile

GetMIMEFromFile method

Returns the MIME string for the specified file.

Syntax

String GetMIMEFromFile(strFile As String, bWebFilter As Boolean)

Return value

Returns a string containing the MIME string.

Parameters

ParameterTypeRequiredDescription
strFileStringYesString containing the path of the file.
bWebFilterBooleanNoOptional parameter which enables or disables the internet filter. If this parameter is true only web formats are accepted (GIF, JPEG, PNG).

Category

Properties

See also

GetBase64String | GetBitsPerPixelFromFile | GetFormatAsStringFromFile | GetFormatFromFile | GetFormatFromString | GetFramesFromFile | GetGUID | GetHasMultipleFramesFromFile | GetHeightFromFile | GetInfoFromFile | GetInfoFromURL | GetIsAnimatedFromFile | GetIsCMYKFromFile | GetIsSupportedFromFile | GetMegaPixelsFromFile | GetMIMEFromFormat | GetWidthFromFile | SetBackgroundColor | SetFormat | SetFormatDefault | SetPixel | SetTransparency