After doing a successful convertion of .docx-files to html using docxj4 2.1.0 i observe that the images are created in the specified image directory, but the images are empty (0 bytes).
This is the case for both jpeg and gif images.
I have tried to investigate html generation options, but could not find anything there that i could match to this problem.
Sample code (not actual code, but the essence):
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load("x:\y.docx");
OutputStream os = new java.io.FileOutputStream("x:\y.html");
javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult(os);
So, the image directory is created if it does not exist, and the images (1 jpg and 1 gif in y.docx) are created (but empty).
I do get some nullpointerexceptions when the .html function executes, but they don't really tell me anything (they are handled within the HtmlExporter.html() function).
If helpful: the pdf generated in a similar way does not contain the images either...
Any idea where to go from here?
I am using Rational Application Developer 126.96.36.199 and doing a test implementation of docx4j (proof of concept).
My project has lotsa imported .jar-files, but i have finally gotten all jars to match with docx4j 2.1.0 (or so it seems).
My web application is defined for jdk 1.5, and the idea of using docx4j is to generate .pdf and html content (stored in the applications db) of .docx files uploaded to the server.