DetectFileFormat

DetectFileFormat(Stream)

Detects and returns the information about a format of a file stored in a stream.

public static FileFormatInfo DetectFileFormat(Stream stream)
Parameter Type Description
stream Stream Source stream.

Return Value

The result FileFormatInfo

See Also


DetectFileFormat(string)

Detects and returns the information about a format of a file.

public static FileFormatInfo DetectFileFormat(string filePath)
Parameter Type Description
filePath String Path to the source file.

Return Value

The result FileFormatInfo

See Also