Skip to content

TFPMimeTypes.LoadFromStream

Load mime types from a stream in mime.types file format.

Declaration

Source position: fpmimetypes.pp line 71

public 
procedure TFPMimeTypes.LoadFromStream(const Stream: TStream);  virtual;

Description

LoadFromStream parses the stream for MIME type definitions and extensions and adds them to the list of known MIME types. The stream is expected to have the text format of the mime.types as found in unix systems.

See also

Name Description
TFPMimeTypes.LoadFromFile Load mime types from a file in mime.types file format.