Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Tika, mail # user - The detect api and rfc822


Copy link to this message
-
The detect api and rfc822
Ramachandran, Karthik 2012-03-09, 15:56
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