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 Apache Commons, you can read all the bytes from a Stream thanks to IOUtils.toByteArray(InputStream) as next:
Stream
byte[] recordData = IOUtils.toByteArray(inStream);
download jar: http://commons.apache.org/io/download_io.cgi