All,

I started working on the Eclipse plug-in that I have mentioned earlier
but I ran into a problem with the AutoDetectParser.

It does not seem to recognize any of the MS Office file formats. They
all return "application/octet-stream" as content type, but no
metadata.
All other file formats work OK.

I tested this with the test files included in the
src\test\resources\test-documents directory.

My source looks like this:

----8<--------8<--------8<--------8<--------8<--------8<----
private AutoDetectParser parser = new AutoDetectParser();
private Metadata metadata = new Metadata();
...
parser.parse(stream, new DefaultHandler(), metadata);
----8<--------8<--------8<--------8<--------8<--------8<----

I'm running Java 1.6.0_03 on Windows.

I there anything special that must be done to get POI to work?

-- 
Litrik De Roy
Norio ICT Consulting - http://www.norio.be/

Reply via email to