Created
July 16, 2016 22:28
-
-
Save edenir-anschau/1fedeb2ea144b520a63be1ec4f86a09d to your computer and use it in GitHub Desktop.
InputStream to byte array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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