On Fri, 11 Jul 2014, Avi Hayun wrote:
1. I use tika-core in my app 2. I use the following to detect the stream's media type:byte[] bytes = IOUtils.toByteArray(new URL("http://www.amazon.com/sitemap_ video.xml"));
That file doesn't have an xml header on the front, which is probably why it isn't being detected just from the bytes. Try passing in the URL or filename as well to Tika (via the Metadata object), if you give that then Tika is able to work out it's xml
Nick