On Tue, Nov 17, 2009 at 7:06 AM, Streets Of Boston
<[email protected]>wrote:
> To get the fully qualified path-name to the image-file (jpg/png),
> query the Uri of the image and obtain the value of the DATA ("_data")
> column. This value is a String, the fully-qualified path to the image
> file. Then you can create a FileInputStream from this file.
>
No, don't do this. Use ContentResolver.openFile() and create a
FileInputStream or whatever from the FileDescriptor:
http://developer.android.com/reference/android/content/ContentProvider.html#openFile(android.net.Uri,
java.lang.String)
--
Dianne Hackborn
Android framework engineer
[email protected]
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en