Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created August 21, 2014 21:47
Show Gist options
  • Save marti1125/c8a5df4c1f06ece1d2af to your computer and use it in GitHub Desktop.
Save marti1125/c8a5df4c1f06ece1d2af to your computer and use it in GitHub Desktop.
de in - out y de out - in
//pasa a output
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte[] bytes = IOUtils.toByteArray(pdfYExcelStream);
out.write(bytes);
out.close();
// de output a input!!
InputStream is = new ByteArrayInputStream(out.toByteArray());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment