Skip to content

IOFileFormat.Load Method

Overloads

Name Description
Load(String, IReadOnlyList<IOFileFormat>) Loads a file from disk.
Load(String, Stream, IReadOnlyList<IOFileFormat>) Loads a file from a stream. Use as an alternative to Load(String, IReadOnlyList<IOFileFormat>) when the file is not on disk, for example web upload.

Load(String, IReadOnlyList<IOFileFormat>)

Loads a file from disk.

public static IOFile Load(string path, params IReadOnlyList<IOFileFormat> supportedFormats);

View source

Parameters

Name Type Description
path String The path to the file to load.
supportedFormats IReadOnlyList<IOFileFormat> The supported formats for the file.

Returns

IOFile

The file that was read.

Load(String, Stream, IReadOnlyList<IOFileFormat>)

Loads a file from a stream. Use as an alternative to Load(String, IReadOnlyList<IOFileFormat>) when the file is not on disk, for example web upload.

public static IOFile Load(string path, Stream stream, params IReadOnlyList<IOFileFormat> supportedFormats);

View source

Parameters

Name Type Description
path String The path of the file in the stream. Used to determine the type of the file.
stream Stream The file.
supportedFormats IReadOnlyList<IOFileFormat> The supported formats for the file.

Returns

IOFile

The file that was read.