B4J Question How to get the MIME type of a file?

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Depends on your definition of simple.

There is this GitHub project which identifies quite a range of filetypes by file signature header bytes.

It is in PHP, but could be converted.

Seems to cover 60 different file types.
Upvote 0