Skip to content

Instantly share code, notes, and snippets.

@levancho
Created August 11, 2023 00:56
Show Gist options
  • Save levancho/78b48c8fca789160b685eb0e6ec66ab8 to your computer and use it in GitHub Desktop.
Save levancho/78b48c8fca789160b685eb0e6ec66ab8 to your computer and use it in GitHub Desktop.
enc1
try (OutputStream os = enc.getDataStream(fs)) {
os.write(inputExcel);
}
// Convert the POIFSFileSystem to a byte array
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
fs.writeFilesystem(baos);
return baos.toByteArray();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment