is.read() gives an int != -1 :) So there is something to read.

2011/5/4 Jukka Zitting <[email protected]>

> On 05/04/2011 09:55 AM, Jukka Zitting wrote:
>
>> On 05/04/2011 07:55 AM, Sascha Rodekamp wrote:
>>
>>> Here are an extraction of my code to understand what i'm try to do:
>>>
>>> InputStream is = new FileInputStream(file);
>>>
>>> Tika tika = new Tika();
>>> tika.detect(is);
>>>
>>> It alwas throws an java.io.IOException: Read error
>>>
>>
>> Do you have the exception stack trace?
>>
>
> Oh, I saw you posted it to Jira already.
>
> Just to see if we're not missing anything, can you test if the following
> code works as expected (i.e. doesn't throw anything):
>
>
>    InputStream is = new FileInputStream(file);
>    is.read();
>
> --
> Jukka Zitting
>



-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de

Reply via email to