tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Koren <jonat...@soe.ucsc.edu>
Subject Re: Reading metadata without downloading entire file
Date Wed, 18 Feb 2009 07:00:13 GMT

You're closing the stream before the metadata arrives.

Tika supports ID3v1 which is at the end of the file, not the beginning.

On Feb 17, 2009, at 10:22 PM, Nick Lothian wrote:

> I'm trying to get MP3 Metadata without downloading an entire MP3.
> I've setup a FilterInputStream which throws an  
> InterruptedIOException after a given amount of a file is downloaded.
> If I point this at an HTML page it works - I can get the title from  
> the metadata.
> If I point it at an MP3 file it doesn't give me any metadata at all  
> (except the Metadata.RESOURCE_NAME_KEY which I set), even if I set  
> the download length to be just less than the length of the file. If  
> I download the whole file it works
> (JPGs don't seem to work either)
> Why is this so? My understanding was that Tika would work with  
> streams?

Jonathan Koren

View raw message