from_stream method
Contents
[
Hide
]
from_stream
Detects file type by reading the file signature.
def from_stream(self, stream):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The file stream. |
from_stream
Detects file type by reading the file signature.
def from_stream(self, stream, password):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The file stream. |
| password | System.String | The password to open the file. |
from_stream
Detects file type by reading the file signature.
Returns
Returns file type in case it was detected successfully otherwise returns default FileType.Unknown file type.
def from_stream(self, stream, logger):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The file stream. |
| logger | groupdocs.viewer.logging.ILogger | The logger. |
from_stream
Detects file type by reading the file signature.
Returns
Returns file type in case it was detected successfully otherwise returns default FileType.Unknown file type.
def from_stream(self, stream, password, logger):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The file stream. |
| password | System.String | The password to open the file. |
| logger | groupdocs.viewer.logging.ILogger | The logger. |
See Also
- module
groupdocs.viewer - class
FileType