Skip to content

Instantly share code, notes, and snippets.

@piruin
Created October 2, 2015 17:21
Show Gist options
  • Save piruin/004a085d02c777fef472 to your computer and use it in GitHub Desktop.
Save piruin/004a085d02c777fef472 to your computer and use it in GitHub Desktop.
How to get bitmap from URI
InputStream is = getContentResolver().openInputStream(uri);
Bitmap bitmap = BitmapFactory.decodeStream(is);
is.close();
@piruin
Copy link
Author

piruin commented Oct 2, 2015

@l337quez
Copy link

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