Created
October 2, 2015 17:21
-
-
Save piruin/004a085d02c777fef472 to your computer and use it in GitHub Desktop.
How to get bitmap from URI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InputStream is = getContentResolver().openInputStream(uri); | |
Bitmap bitmap = BitmapFactory.decodeStream(is); | |
is.close(); |
i need problem converting uri to multipart in kotlim :(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gist from answer of mig at stackoverflow
http://stackoverflow.com/questions/3401579/get-filename-and-path-from-uri-from-mediastore