create a file from content uri using fileoutputstream kotlin android code example Example: create file from uri File(uri.getPath());