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 ...