FileTypeFromStream Method (Stream)
Detects file type by reading the file signature.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.8
Syntax
public static FileType FromStream(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The file stream.

Return Value

Type: FileType
Returns file type in case it was detected successfully otherwise returns default Unknown file type.
See Also