I was just wondering how most people fetch a mime type from a file in Java? So far I\'ve tried two utils: JMimeMagic & Mime-Util.
JMimeMagic
Mime-Util
Th
Apache Tika.
org.apache.tika tika-parsers 1.24
and Two line of code.
Tika tika=new Tika(); tika.detect(inputStream);
Screenshot below