View Source Support types

The tables below show the support MIME Type and minimum number of bytes need to perform. If the length of data that is provided to the function is less than the minimum, the program will return unmatch immediately.

a-html-xml-pdf-postscript-or-utf-text-type-more-info

A html, xml, pdf, postscript or UTF text type (more info)

MIME TypeMinimum number of bytes need to performNote
text/html15
text/xml5
application/pdf5
application/postscript11
text/plain4UTF-16BE BOM, UTF-16LE BOM, and UTF-8 BOM text file.

an-image-type-more-info

An image type (more info)

MIME TypeMinimum number of bytes need to performNote
x-icon4
x-icon4
image/bmp2
image/gif6
image/gif6
image/webp14
image/png8
image/jpeg3

an-audio-or-video-type-more-info

An audio or video type (more info)

Currently, this application does not support sniffing A MP3 without id3 type

MIME TypeMinimum number of bytes need to performNote
audio/aiff12
audio/mpeg3
application/ogg5
audio/midi8
video/avi12
audio/wave12
video/mp4>12how the algorithm work for mp4
*video/webm*4only check first four bytes see Matching a WebM type.

a-font-type-more-info

A font type (more info)

MIME TypeMinimum number of bytes need to performNote
application/vnd.ms-fontobject36
font/ttf4
font/otf4
font/collection4
font/woff4
font/woff24

an-archive-type-more-info

An archive type (more info)

MIME TypeMinimum number of bytes need to performNote
application/x-gzip3
application/zip4
application/x-rar-compressed7

other

Other

MIME TypeMinimum number of bytes need to performNote
text/plain0if content contains no binary data bytes
application/octet-stream1if not match anything else