FileTypeFromStream Method (Stream, String) |
Detects file type by reading the file signature.
Namespace: GroupDocs.ViewerAssembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.5
Syntaxpublic static FileType FromStream(
Stream stream,
string password
)
Public Shared Function FromStream (
stream As Stream,
password As String
) As FileType
public:
static FileType^ FromStream(
Stream^ stream,
String^ password
)
static member FromStream :
stream : Stream *
password : string -> FileType
Parameters
- stream
- Type: System.IOStream
The file stream. - password
- Type: SystemString
The password to open the file.
Return Value
Type:
FileType
See Also