FromStream
Contents
[
Hide
]
FromStream(Stream)
Detects file type by reading the file signature.
public static FileType FromStream(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The file stream. |
See Also
- class FileType
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
FromStream(Stream, string)
Detects file type by reading the file signature.
public static FileType FromStream(Stream stream, string password)
Parameter | Type | Description |
---|---|---|
stream | Stream | The file stream. |
password | String | The password to open the file. |
See Also
- class FileType
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
FromStream(Stream, ILogger)
Detects file type by reading the file signature.
public static FileType FromStream(Stream stream, ILogger logger)
Parameter | Type | Description |
---|---|---|
stream | Stream | The file stream. |
logger | ILogger | The logger. |
Return Value
Returns file type in case it was detected successfully otherwise returns default Unknown
file type.
See Also
- interface ILogger
- class FileType
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
FromStream(Stream, string, ILogger)
Detects file type by reading the file signature.
public static FileType FromStream(Stream stream, string password, ILogger logger)
Parameter | Type | Description |
---|---|---|
stream | Stream | The file stream. |
password | String | The password to open the file. |
logger | ILogger | The logger. |
Return Value
Returns file type in case it was detected successfully otherwise returns default Unknown
file type.
See Also
- interface ILogger
- class FileType
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer