There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Unzipping docx throws ObjectDisposedException
I am trying to read document.xml file from docx zip. The code I use to accomplish this is super-easy and is attached as screenshot along with exception detail.
In short: open a ZipFile (using StreamResourceInfo class in WP7) , get a ZipEntry by filename, if ZipEntry is not null - call zipFile.GetInputStream(zipEntry) to get stream, init byte buffer in zipEntry.Size, read stream into buffer <<-- ObjectDisposedException.
Can anyone tell me whether this is bug or I am doing something wrong? Can anyone test it? Thanks!