https://issues.apache.org/bugzilla/show_bug.cgi?id=50572

Yegor Kozlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Yegor Kozlov <[email protected]> 2011-01-19 07:53:55 EST ---
You must close the outputstream of a packagepart, otherwise the data isn't
written in the underlying zip package.

Add mpOut.close() after you've written the data and  you will be good:

OutputStream mpOut = commentOriginal.getOutputStream();
mpOut.write(strCommentAfterManipulation.getBytes(), 0,
                    strCommentAfterManipulation.length());
mpOut.close(); 

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to