从URL创建io.File

时间:2019-07-11 14:34:58

标签: flutter dart

是否有机会从URL创建文件?

我尝试过

http.Response response = await http.get('https://www.eman.cz/wp- 
content/uploads/2018/04/flutter_eman_blog.png');
File file = File.fromRawPath(response.bodyBytes);

我遇到FileSystemException:无法检索文件长度,path ='PNG

0 个答案:

没有答案