hi Team, We are using POI-4.0.1 for manipulating advanced properties of MS office files. And in order to do that, we have encountered the below exception while working with one of the file. So, as per the message below, its suggested to set higher override value with IOUtils.setByteArrayMaxOverride(). Hence, i would like to know what value to provide as a parameter to setByteArrayMaxOverride() method. Could you please suggest ? Caused by: org.apache.poi.util.RecordFormatException: Tried to allocate an array of length 140628, but 100000 is the maximum for this record type. If the file is not corrupt, please open an issue on bugzilla to request increasing the maximum allowable size for this record type. As a temporary workaround, consider setting a higher override value with IOUtils.setByteArrayMaxOverride() Regards, Sushmita
There are problems with the max override code - see https://bz.apache.org/bugzilla/show_bug.cgi?id=64001
hi, So, is there any solution for the above issue ? As our Customer is totally blocked because of the above issue where in they are not able to upload a certain document of 2.5 MB because of org.apache.poi.util.RecordFormatException. Could you please let us know how do we proceed from here ? Regards, Sushmita
I added a comment on https://bz.apache.org/bugzilla/show_bug.cgi?id=64001 - closing this so that we don't have duplicate issues floating around *** This bug has been marked as a duplicate of bug 64001 ***