embedded glassfish - activation.jar

253 Views Asked by At

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

1

There are 1 best solutions below

5
Walter On BEST ANSWER

I ended up using a better API which actually reads the file type: Apache Tika.

Walter