Reputation: 251
I need to access file from Android Gallery and upload it to the URL using POST.
There is no problem. I am just new to do this stuff like accessing device data. I need to have a hint to get full path of image what I selected from gallery using Intent and StartActivityForResult.
Upvotes: 0
Views: 801
Reputation: 7450
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
Uri uri = data.getData();
Bitmap bt = BitmapFactory.decodeStream(getContentResolver().openInputStream(uri));
}
Upvotes: 1