Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edenir-anschau/1fedeb2ea144b520a63be1ec4f86a09d to your computer and use it in GitHub Desktop.
Save edenir-anschau/1fedeb2ea144b520a63be1ec4f86a09d to your computer and use it in GitHub Desktop.
InputStream to byte array
byte[] bytes = ByteStreams.toByteArray(inputStream);
http://google.github.io/guava/releases/19.0/api/docs/com/google/common/io/ByteStreams.html#toByteArray(java.io.InputStream)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment