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
If you are working with a Servlet and if the servlet context is available to you, you can use :
getServletContext().getMimeType( fileName );