Indy 9 | Content | Index | Reference

ReturnMIMEType
Unit: IdMIMETypes
Constructs the MIME media type, subtype and encoding for the file.

    function ReturnMIMEType(var MediaType: String; var EncType: String): Boolean;

Unit
IdMIMETypes
Parameters
var MediaType: String
Media type and subtype for the file.
var EncType: String
Encoding for the file.
Return Value
Boolean - True when MIME type is found, False when not found.
Description
ReturnMIMEType is a Boolean function that constructs the complete MIME media type, subtype, and encoding from the parameters for the function.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.