这个是iamge 是图片地址
var response = await Dio().get(image, options: Options(responseType: ResponseType.bytes));
var filePath = await ImagePickerSaver.saveFile(fileData: Uint8List.fromList(response.data));
这个是iamge 是图片地址
var response = await Dio().get(image, options: Options(responseType: ResponseType.bytes));
var filePath = await ImagePickerSaver.saveFile(fileData: Uint8List.fromList(response.data));
本文标题:flutter 根据图片地址转bytes
本文链接:https://www.haomeiwen.com/subject/fnaqahtx.html
网友评论