I\'m trying to get from an Android Uri to a byte array.
I have the following code, but it keeps telling me that the byte array is 61 bytes long, even though the fil
With Google Guava, you can use ByteStreams.toByteArray(InputStream) to get all the bytes in the input stream:
InputStream is = ...; byte[] bytes = ByteStream.toByteArray(is);