Class FileSignatureHelper
Contains the logic needed to derive the file extension from a file's hex representation.
Inherited Members
Namespace: Quantellia.WMServer.Asset.Model.Document
Assembly: WMServer.dll
Syntax
public class FileSignatureHelper
Methods
GetFileSignature(string, byte[])
Returns the file's extension if supported, or null if not supported.
Declaration
public static string? GetFileSignature(string fileName, byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | A file's filename |
byte[] | bytes | A file's byte[] representation. |
Returns
Type | Description |
---|---|
string |