Relative Content

Tag Archive for androidandroidx

Why aren’t photo editors accepting URIs from the photo picker?

I want to request a photo from the user using the system photo picker (i.e. with a PickVisualMedia request), then send another Intent for a photo editor to crop the photo. If I just send the URI received from the photo picker with the intent, Google Photos shows “Error, could not load media” and quits. Other photo editors I have either show a similar warning or just crash.

generated base64 string is corrupt

I am using CameraX to take photos and want their base64 value. And for that, I want a JPEG base64 string but when I went to view it, it is corrupt and can only be viewed/decoded back to image after I repair it in some online service. Not sure what I am doing wrong: