https://issues.apache.org/bugzilla/show_bug.cgi?id=54566
Bug ID: 54566
Summary: ZipException was caught broken uncompressed block
Product: POI
Version: 4.0-dev
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: XWPF
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Dear POITeam,
I have got a requirement. My 1.docx file contains 2.docx as embedded object.
When I try to read the 2.docx by saving to disk and when I try to read
everything is going fine.
Where as my requirement is I will read the 2.docx file using
packagePart.getInputStream() and I will get the byte array and I will store it
some where in the database. Again when I want to read the stored document from
byte[] I am getting the below exception ZIPException was caught broken
uncompressed file.
I am using the below code to get the extractor:
ExtractorFactory.createExtractor(OPCPackage.open(new
ByteArrayInputStream(fileData, 0, fileData.Length)));
Remember I want to read the embedded document(2.docx which is inside
1.docx)using byte[] not from InputStream. Please guide me if I am doing
anything wrong here.
Thanks & Regards,
N.Murali Krishna.
--
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]