-1

I'm creating an app that went I click the button it will go to the gallery and whatever Choose in the gallery it will display on the image view the problem is when I select an image in my gallery and the size is 3mb up it will not display in an image view. Is there a way that I can display it even if the size is 3MB up?

Masoud Badrmiran
  • 421
  • 2
  • 4
  • 11
  • use this https://stackoverflow.com/questions/5309190/android-pick-images-from-gallery – Saurabh Dhage Jun 16 '21 at 07:03
  • 3mb== 3 milli bit? – blackapps Jun 16 '21 at 07:27
  • thank you for answering sir. 3mb is 3 megabyte, when the size of the image is 3megabyte up it will not display in the image view – Josephjet Abela Jun 16 '21 at 08:18
  • @SaurabhDhage Thank you yep I was using the code and it works perfectly. But the problem is when the size of the image is 3 megabyte or higher the image will not display. – Josephjet Abela Jun 16 '21 at 08:22
  • `3mb is 3 megabyte` Sorry. Sadly you did not get the point. 3MB would be 3 mega byte. – blackapps Jun 16 '21 at 10:11
  • And it is not the size of the image file but the resolution of the image described by it that prevents the generation of a bitmap. The bitmap would become to big for available memory. Solution: scale it down. – blackapps Jun 16 '21 at 10:13

1 Answers1

0

are you using any particular library for picking image from your gallery!?

Omid Kzm
  • 78
  • 5