Nick,

the documentation specifically says that tika closes this input stream. I
used to close it myself, but having read this documentation page, took this
closing out.

I will try TikaInputStream, to see if this fixes the problem.

Mark

On Tue, Aug 30, 2011 at 12:26 PM, Nick Burch <[email protected]>wrote:

> 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