You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by "Ramachandran, Karthik" <kr...@iqt.org> on 2012/03/09 16:56:09 UTC

The detect api and rfc822

Hi,

I'm trying to detect an email with Tika's auto dectet api. However I keep getting back an "application/octet-stream" as the mime type:

    Tika tika = new Tika();
    InputStream document = new InputStream(new File(...));

    String mimeType = tika.detect(document);

Thanks,

Karthik