Getting A File's Mime Type In Java
Posted
by Lee Theobald
on Stack Overflow
See other posts from Stack Overflow
or by Lee Theobald
Published on 2008-09-09T09:11:06Z
Indexed on
2010/06/06
15:42 UTC
Read the original article
Hit count: 361
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. The first gave me memory exceptions, the second doesn't close its streams off properly. I was just wondering if anyone else had a method/library that they used and worked correctly?
© Stack Overflow or respective owner