Giter Club home page Giter Club logo

Comments (14)

Catlandor avatar Catlandor commented on September 22, 2024 2

It's related to the Android photo picker, which was released with SDK version 33 of Android. Also see:
https://developer.android.com/training/data-storage/shared/photopicker

When opening the gallery, the photo picker was opened (instead of the default gallery folder view) and selecting an image with this (new) photo picker had two issues with the previous implementation (release 2.3.20):

  • This file didn't end with ".jpg", ".png", it had a generated file name like "1000000033". Since the previous implementation looked for the last period to identify the mime type of the file, this failed here and later led to above mentioned exception "File Not Found" (actually it couldn't create a file, since it didn't have a mime type).
  • When selecting an image via Android photo picker, it was treated as a multiple image selection, even if it was not. This led to a null reference exception when trying to get the uri of the image within the returned result.

Second issue also could been reproduced by opening the gallery, then navigating the Google Photos (via hamburger menu on the top left) and selecting an image from here.

Both issues are fixed with release 2.3.22

from imagepicker.

Catlandor avatar Catlandor commented on September 22, 2024 1

@Drjacky: Thanks for including my fix, but the changes within the "GalleryProvider" are needed as well.
When picking an image with the Android photo picker it treats this as a "multiple image" selection, even though it is not.

If you do not include this change, the returned result for a single image selection via the Android photo picker will be always null (uri of the image).

I also tested my changes with the multiple image selection as well: This still works as intended.

from imagepicker.

ZoobiApps avatar ZoobiApps commented on September 22, 2024

I tested this sample app yesterday and it was working fine but today it is showing me same exception. Don't know what happened!

from imagepicker.

ZoobiApps avatar ZoobiApps commented on September 22, 2024

it is not picking the images from recents that are shown for the very first time,... but when we click on browse and select from files it's working fine. Please do let me know if you can solve this or even if you can stop recents to be viewed.

Here are the screenshots.

from imagepicker.

ashifali3147 avatar ashifali3147 commented on September 22, 2024

I am facing the same issue today.

from imagepicker.

ZoobiApps avatar ZoobiApps commented on September 22, 2024

@Drjacky ?

from imagepicker.

ibrahim-sdsol avatar ibrahim-sdsol commented on September 22, 2024

Facing same issue

from imagepicker.

mandocarrilloh avatar mandocarrilloh commented on September 22, 2024

@Drjacky same issue 2 days ago

from imagepicker.

ashifali3147 avatar ashifali3147 commented on September 22, 2024

Check ImagePicker this library.

from imagepicker.

ZoobiApplications avatar ZoobiApplications commented on September 22, 2024

@Catlandor thankyou so much for the Bugfix.

from imagepicker.

Drjacky avatar Drjacky commented on September 22, 2024

Thanks to @Catlandor, fixed on 2.3.21

from imagepicker.

Drjacky avatar Drjacky commented on September 22, 2024

Fixed on 2.3.22.
Thanks!

from imagepicker.

oia05 avatar oia05 commented on September 22, 2024

Heyy, I know this is closed, but can I know what are the retro steps? It happened with some of our users, but we did not know when and how.
Thanks.

from imagepicker.

oia05 avatar oia05 commented on September 22, 2024

Thank you for the clarification

from imagepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.