On Tue, 30 Aug 2011, Mark Kerzner wrote:
String text = tika.parseToString(new FileInputStream(new File(fileName)),
metadata);

Is that in your code our Tika?

If you open a FileInputStream, then you yourself need to close it too

Also, if you have a File, you're better off wrapping it in a TikaInputStream rather than a FileInputStream, as some parsers prefer a File and Tika can then use that

Nick

Reply via email to