I want to get from an Android Uri (of the kind returned by onActivityResult) to a simple byte array, in order to upload a file as part of a multipart message. Can anyone provide an example of how to get from a Uri to a byte[] array?
Edit: I mean the android.net.Uri
Uri
After putting together some SO examples and google group codes, i'm able to acheive it by this code: