AllowedFileTypeExtensions Class
Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Methods
GetSample
(Stream) Method
GetSample (Stream stream)
Retrieve a 64 byte sample from the start of a stream. If the stream contains less than 64 bytes, retrieve all bytes.
IsValid
(AllowedFileType, Stream) Method
IsValid (AllowedFileType allowedFileType, Stream stream)
Return whether the bytes in the stream match one or more "allowed" file signatures.
IsValid
(String, Byte[]) Method
IsValid (String signature, Byte[] sample)
Return whether the bytes in sample match the signature.