Class SunamoMimeHelper
- Namespace
- SunamoMime
- Assembly
- SunamoMime.dll
Helper class for determining MIME types and file formats from byte arrays.
public class SunamoMimeHelper
- Inheritance
-
SunamoMimeHelper
- Inherited Members
- Extension Methods
Methods
FileType(byte[])
Determines the file type from a byte array by analyzing file signatures.
public static string FileType(byte[] array)
Parameters
arraybyte[]The byte array containing file data to analyze.
Returns
- string
The file extension corresponding to the detected file format.
Init()
Initializes known MIME type signatures. Currently supports: WEBP format.
public static void Init()