ImagePicker: Getting Unable to decode stream: java.io.FileNotFoundException if crop is false

Hi! Thanks for the library!

Checked sample app. Getting BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /document/image:197117: open failed: ENOENT (No such file or directory) if don’t add crop()

ImagePicker.with(this)
//                .crop()
//                .cropOval()
                .maxResultSize(512, 512, true)
                .createIntentFromDialog { profileLauncher.launch(it) }

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

I’ve changed my GalleryProvider to include your permissions logic, but maintaining all my previous logic. It’s working now 👍🏼

@ASKabanets You’re right. The error is in logcat but, the app works and you could easily use the uri and pass it to your Image Loader library.

I’ll fix that false-positive exception. Thanks!

https://drive.google.com/file/d/1TO5VLXkkVM_bUwk9qBR9co2Zk4ml8V3O/view?usp=sharing