Possible Duplicate:
Getting A File's Mime Type In Java
have a File, is there a way to deduct its content type like application/xml etc?
Possible Duplicate:
Getting A File's Mime Type In Java
have a File, is there a way to deduct its content type like application/xml etc?
Try jMimeMagic and Mime Type Detection Utility
Taken from: How to detect files type