send flutter bytedata to image generation as input in python without saving data on mobile

后端 未结 0 620
不思量自难忘°
不思量自难忘° 2021-02-06 05:38

ui.Image image = await boundary.toImage();

ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);

Uint8List pngBytes = byteData.buffer.asUint8

相关标签:
回答
  • 消灭零回复
提交回复
热议问题