FromStream

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


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


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


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