Internet Direct (Indy)
Home
PreviousUpNext
TIdMimeTable.LoadFromStrings Method

Loads the MIME Type mapping table from the specified string list.

Pascal
procedure LoadFromStrings(
    const AStrings: TIdStrings; 
    const MimeSeparator: Char = '='
);
Parameters 
Description 
AStrings 
Values to be loaded into the MIME type mapping table.
 
MimeSeparator 
Character used to delimit file extention and MIME type values in AStrings. 

LoadFromStrings is a procedure used to parse file extension and MIME type and subtype values in AStrings in the MIME mapping table. MimeSeparator is the character used to delimit file extention and MIME type and subtype values in AStrings. 

LoadFromStrings clears any existing file extension and MIME type mappings prior to loading each line in AStrings. LoadFromStrings converts file extensions to their lowercase representation prior to addition to the file extenstion list. LoadFromStrings calls AddMimeType if the file extension does not already exist in the MIME type mapping table.

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.