poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57342] Writing very large file via SXSSF leads to corrupt file
Date Wed, 06 Mar 2019 15:58:56 GMT

--- Comment #30 from krzysztof.rzymkowski@gmail.com ---
@PJ_Fanning Sure, but I'm not fully clear on what you mean by "submit to us".
Do you mean submit to Apache POI source repo, Apache Incubator or via
https://projects.apache.org/create.html? Could you point me to what the next
steps would be.

Here's a least invasive scenario:
Allow to tap into SXSSFWorkbook.injectData() [1], to provide own implementation
of  ZipArchiveOutputStream. For example via introducing protected
createZipOutputStream() method.
I could provide an OpcOutputStream wrapper extending ZipArchiveOutputStream.
Just like I did with ZipOutputStream [2]. 
Then to create SXSSFWorkbook with >4GB sheet support, you would:

SXSSFWorkbook wb = new SXSSFWorkbook() {
  protected ZipArchiveOutputStream createZipOutputStream(OutputStream out) {
     return new OpcZipArchiveOutputStream(out);


You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message