MIME is media type often abbreviated from Multipurpose Internet Mail Extensions.
How we detect MIME Type from a file? Well, we read the file signatures, also known as 'magic bytes'.
So, we can ready the file signatures, mostly from the header / first few bytes of file. Then, we can match the bytes to coresponding unique magic bytes
For example, we have a file with following bytes (we cut few bytes for the sake of simplicity)
89 50 4E 47 0D 0A 1A 0A BA BE FA CE AA BB CC DD CA FE D0 D0 BE EE EE EF
89 50 4E 47 0D 0A 1A 0A match PNG signature, hence it will be treated as PNG file (this condition true on most linux systems)
Toolkit Bay or TKB is an online tools website providing free and easy to use tools to increase productivy or just for fun.
If you have any inquiries or suggestions, you can contact us on: firstname.lastname@example.org
We respect your data. Uploaded file/data/input will be automatically deleted. And the processed data will be deleted less than a day.