Detect

FileFormat.Detect method (1 of 2)

Detect the file format from data stream, file name is optional for guessing types that has no magic header.

public static FileFormat Detect(Stream stream, string fileName)
Parameter Type Description
stream Stream
fileName String

See Also


FileFormat.Detect method (2 of 2)

Detect the file format from file name, file must be readable so Aspose.3D can detect the file format through file header.

public static FileFormat Detect(string fileName)
Parameter Type Description
fileName String

See Also