Skip to content

Can you please define how to decode image that is selected from sdcard. #7

@amitsahni

Description

@amitsahni

I Used the below code for this but it always says file not found. but the same is working in case of gallery.

                 File cameraFile = new File(
                        Environment.getExternalStorageDirectory(),
                        "photo.jgp");
                if (cameraFile.getPath() != null) {
                    Bitmap bitmap = BitmapDecoder.from(context, cameraFile.getPath()).decode();
                    mImageView.setImageBitmap(bitmap);
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions