MultipleImageSelect icon indicating copy to clipboard operation
MultipleImageSelect copied to clipboard

File URi or File descriptor instead of image

Open abdullahumer opened this issue 9 years ago • 1 comments

Is there any way to return an array Uri or file descriptors of images instead of the images itself ?

abdullahumer avatar Aug 30 '16 14:08 abdullahumer

One possible way is when you get the selected images from the library, you can iterate through and obtain the URI for each image individually as:

ArrayList<Image> images = data.getParcelableArrayListExtra(Constants.INTENT_EXTRA_IMAGES);
for (int i = 0, l = images.size(); i < l; i++) {
    fileUris.add(new File(images.get(i).path).toURI());
}

darsh2 avatar Sep 27 '16 17:09 darsh2