How To Convert File Uri To File Path?
I getting an URI when try to pick a file : Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType('file/*'); startActivityForResult(intent,FILE_MANAGER_R
Solution 1:
There is no "real file path". A Uri
is not a File
.
Please use ContentResolver
and methods like openInputStream()
to consume the content.
Post a Comment for "How To Convert File Uri To File Path?"