颤音:将URI转换为文件路径
我在下载文件夹中有一个文件:
'/storage/emulated/0/Download/Music.mp3'
但是,在flutter中,我只会得到这样的uri:
'content://media/external/audio/media/906'
当使用uri_to_file插件时,我会得到一个临时文件名称:
'/data/data/com.myapp.testapp/files/uri_to_file/Music.mp3'
如何在下载文件夹中获取真实路径?
非常感谢!
I have a File in the Download folder:
'/storage/emulated/0/Download/Music.mp3'
but in Flutter I only get the Uri like this:
'content://media/external/audio/media/906'
when is use uri_to_file Plugin, I get a temporary file name:
'/data/data/com.myapp.testapp/files/uri_to_file/Music.mp3'
How can I get the real path in the Download folder ???
Thanks so much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论