There are several ways to get the MIME type on this page.
MIME , , , Apache Tika framework, .
Tika ( Groovy):
// Grab tika and all its dependencies...
// takes a while on first run, as it pulls in LOADS of dependencies
@Grab( 'org.apache.tika:tika-core:0.9' )
@Grab( 'org.apache.tika:tika-parsers:0.9' )
import org.apache.tika.Tika
println( new Tika().detect( new File( 'tim.tiff' ) ) )
println( new Tika().detect( new File( 'tim.renamedtiff' ) ) )
:
15:15:56 [tim_yates@mac] TikaTest $ groovy test.groovy
image/tiff
image/tiff