- Code: Select all
/* tmp is an hibernate object that loads the docx template from a database */
InputStream fileInputStream = new ByteArrayInputStream(tmp.getFile());
LoadFromZipNG load = new LoadFromZipNG();
OpcPackage pkg = load.get(fileInputStream);
ByteArrayOutputStream out = new ByteArrayOutputStream();
SaveToZipFile save = new SaveToZipFile(pkg);
save.save(out);
byte[] bytes = out.toByteArray();
out.close();
return bytes;
But after the execution of this code, the memory consumption of my application raises, and analyzing the ...

News of Plutext