Im trying to save a docx file to an outputstream or a ByteArrayOutputStream. Im using the save method like this. Note that Im able to load the file, get the title and cusotm properties. Only the save doesnt works.
- Code: Select all
WordprocessingMLPackage wordMLPackage=null;
wordMLPackage = WordprocessingMLPackage.load(is);
OutputStream os=null;
wordMLPackage.save(os);
I also tried like this:
- Code: Select all
ByteArrayOutputStream memoryStream=null;
WordprocessingMLPackage wordMLPackage=null;
wordMLPackage = WordprocessingMLPackage.load(is);
wordMLPackage.save(memoryStream);
they are both failling. Worst than that I dont get any error, although Im using try catch including the generic exception catch. Only a general error on the Alfresco side.
What can be happening here?
ps: im using docx4j-3.2.1.jar
thank you
fwu