Ever needed to discover the MIME type of a file from Java code? Fear not, Magic Numbers for Java is here!
Note that this library does not look at the file's extension. If you need to find a file's type from its extension, investigate javax.activation.MimetypesFileTypeMap.
No comments:
Post a Comment