Android - getting from a Uri to an InputStream to a byte array?
<p>I'm trying to get from an Android Uri to a byte array. </p>

<p>I have the following code, but it keeps telling me that the byte array is 61 bytes long, even though the file is quite large - so I think it may be turning the Uri <strong>string</strong> into a byte array, rather than the file :(</p>

<pre><code>  Log.d(LOG_TAG, "fileUriString = " + fileUriString);
  Uri tempuri = Uri.parse(fileUriString);
  InputStream is = cR.openInputStream(tempuri);
  String str=is.toString();
  byte[] b3=str.getBytes();
  Log.d(LOG_TAG, "len of data is " + imageByteArray.length
     + " bytes");
</code></pre>

<p>Please can someone help me work out what to do?</p>

<p>The output is "fileUriString = content://media/external/video/media/53" and "len of data is 61 bytes".</p>

<p>Thanks!</p>
