FileFormatUtil.DetectFileFormat

DetectFileFormat(Stream)

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

public static FileFormatInfo DetectFileFormat(Stream stream)
ParameterTypeDescription
streamStreamSource 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)
ParameterTypeDescription
filePathStringPath to the source file.

Return Value

The result FileFormatInfo

See Also