📜  uint8list 到 base64 颤动 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:54.010000             🧑  作者: Mango

代码示例1
import 'dart:convert';
import 'dart:typed_data';

String uint8ListTob64(Uint8List uint8list) {
  String base64String = base64Encode(uint8list);
  String header = "data:image/png;base64,";
  return header + base64String;
}