OPCPackage.open(file) is more efficient memory wise than OPCPackage.open(inputStream)
/** * Open a package. * * Note - uses quite a bit more memory than {@link #open(String)}, which * doesn't need to hold the whole zip file in memory, and can take advantage * of native methods * * @param in * The InputStream to read the package from * @return A PackageBase object */ public static OPCPackage open(InputStream in) throws InvalidFormatException, IOException { -- View this message in context: http://apache-poi.1045710.n5.nabble.com/Bug-60567-New-XSSFReader-caused-OutOfMemoryError-when-reading-a-lerge-excel-file-in-HDFS-as-inputStrm-tp5726184p5727624.html Sent from the POI - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org