在Bloutter中将Blob显示为图像

Kyl*_*kes 2 blob image dart flutter

有谁知道如何使用Flutter将Blob转换为图像?看起来这个'dart:html'库在Flutter中不可用.任何帮助表示赞赏.谢谢!

Kyl*_*kes 9

如果有人有兴趣,我找到了解决方案:

从JSON抓取blob:

var blob = yourJSONMapHere['yourJSONKeyHere'];

var image = BASE64.decode(blob); // image是一个Uint8List

现在,使用图像Image.memory

new Container( child: new Image.memory(image));

这对我有用!