I have file picker in my app so have used DocumentPicker to select file from android device. Once I get uri which looks something like
\'content://com.android.pro