I have been able to get the content:// Uri of the image from the gallery. I have to show the preview of the image and upload it onto the server as well. A file can not be created with content:// Uri.
So what is the standard way of picking up image and uploading it to server in Android 10 and above with scoped storage in place.
Edit It's an image file and I have to reduce its size before uploading it to the server. Even size reduce function is failing as its unable to locate the file.