On Wed, 18 Jul 2012, rodgersh wrote:
And here is my custom-mimetypes.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info>
  <mime-type type="image/nitf">
      <alias type="image/ntf"/>
      <glob pattern="*.nitf"/>
  </mime-type>
</mime-info>

I've no idea about OSGi, so I can't comment on what you need to do to have it look at your extra file. Hopefully one of our OSGi experts can help you with the appropriate incantation / jar file blessing / etc.

However, I do know about mimetypes in Tika, so I've fixed your problem that way - see TIKA-957. As of r1363160 Tika should now know about NTIF files, and should have some mime magic for them (works on the few sample files I tried)

Nick

Reply via email to