Load image from SD card using Glide

If you have original path of image than you have to converted to URI and showing image like this

    String fileName = "1.jpg";
    String completePath = Environment.getExternalStorageDirectory() + "https://stackoverflow.com/" + fileName;

    File file = new File(completePath);
    Uri imageUri = Uri.fromFile(file);

    Glide.with(this)
            .load(imageUri)
                    .into(imgView);

Seems like you have URI than you have to put than URI only

   Glide.with(this)
            .load(Uri)
                    .into(imgView);

Leave a Comment