Java: library to detect file mime types

1. Mime Type Detection Utility: Enable Java programs to detect MIME types based on file extensions, magic data and content sniffing. Supports detection from,, and byte arrays. 

2.jMimeMagic is a Java library for determining the MIME type of files or streams.
  • Check out the source code from github:
    git clone
  • To build jMimeMagic, you need to have maven installed. Then run maven to build it:
    mvn clean package
  • The built jar will be placed into ./target
  • jMimeMagic Java API Docs 

See Also

No comments:

Post a Comment