Internet Direct (Indy)
Home
PreviousUpNext
ReturnMIMEType Function

Constructs the MIME media type, subtype and encoding for the file.

Pascal
function ReturnMIMEType(
    var MediaType: String; 
    var EncType: String
): Boolean;
Parameters 
Description 
MediaType 
Media type and subtype for the file.
 
EncType 
Encoding for the file. 

Boolean - True when the MIME type is found, False when not found.

ReturnMIMEType is a Boolean function that validates the MIME media media type, subtype, and encoding using the values passed in the MediaType and EncType arguments. 

ReturnMIMEType compares the value in MediaType to the MIMEMediaType values defined in the Indy library. ReturnMIMEType returns True if MediaType is one of the standard MIME types, or uses the extensibility prefix 'x-' for one of the standard MIME types.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.