I need to use javax.activation to get the mimetype of files. I am running embedded glassfish and added the activation jar to the maven plugin as a dependency; however, it is still returning application/octet-stream which indicates to me that the jar is not in the right location.
Any ideas?
Thanks,
Walter
I ended up using a better API which actually reads the file type: Apache Tika.
Walter