Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picasso 2.7 & 2.8 loading image from external storage dosen't work, but picasso 2.5.2 works fine. #2219

Open
farzanta opened this issue Sep 12, 2021 · 1 comment

Comments

@farzanta
Copy link

farzanta commented Sep 12, 2021

I am trying to load an exist image from the external storage. but nothing is shown.
Even, it doesn't show errorimage.
(tested with "Environment.getExternalStorageDirectory()" and a hardcoded path).
The code:

String filePath = "file:///sdcard/exist_image.png";
Picasso.get().setLoggingEnabled(true);
Picasso.get().load(filePath.trim())
  .error(R.drawable.errorimage)
  .into(imageView, new Callback() {
      @Override
      public void onSuccess() {
        Log.w(TAG, "Successfull Loading");
      }
      @Override
      public void onError(Exception e) {
        Log.error(TAG, "Error on loading image: " + e);
      }
  });

Picasso log doesn't show error or warning, just regular log:

D/Picasso: Main        created      [R1] Request{file:///sdcard/exist_image.png}
D/Picasso: Dispatcher  enqueued     [R1]+17ms
D/Picasso: Hunter      executing    [R1]+18ms

I came back to the Picasso version 2.5.2 and it works fine.

@vknow360
Copy link

vknow360 commented May 4, 2022

I am also facing the same issue.
P. S. rolling back to v2.5.2 works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants