Topic Path: Symbol Reference > Classes > TIdMimeTable Class > TIdMimeTable Methods > LoadFromStrings Method
ContentsIndexHome
PreviousUpNext
TIdMimeTable.LoadFromStrings Method

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.