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

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.12
Syntax
public static FileType FromStream(
	Stream stream,
	string password
)

Parameters

stream
Type: System.IOStream
The file stream.
password
Type: SystemString
The password to open the file.

Return Value

Type: FileType
See Also