当前位置:网站首页>Mutual conversion of pictures in fluent uint8list format and pictures in file format
Mutual conversion of pictures in fluent uint8list format and pictures in file format
2022-07-01 10:48:00 【Dense breath】
file Format picture into Uint8List Format picture
Uint8List imageByte;
imageByte = await widget.image.readAsBytes();
// Get the callback Uint8List Format picture to File Format
SaveImage(Uint8List imageByte) async {
// Get the temporary directory
var tempDir = await getTemporaryDirectory();
// Generate file File format
var file =
await File('${
tempDir.path}/image_${
DateTime.now().millisecond}.jpg')
.create();
// Turn into file file
file.writeAsBytesSync(imageByte);
print("${file.path}");
setState(() {
path = file.path;
// turn(file);
_imageUint8=imageByte;
});
}
边栏推荐
- Crawler (2) - requests (1) | deep parsing of requests module
- Lack of comparator, operational amplifier to save the field! (the op amp is recorded as a comparator circuit)
- 106. construct binary tree from middle order and post order traversal sequence
- Addition, deletion, modification and query of database
- 基于Matlab的开环Buck降压斩波电路Simulink仿真电路模型搭建
- 442. 数组中重复的数据
- About database: how to avoid deadlock in gbase 8s
- [.NET6]使用ML.NET+ONNX预训练模型整活B站经典《华强买瓜》
- [MPC] ② quadprog solves positive definite, semi positive definite and negative definite quadratic programming
- LeetCode.每日一题 剑指 Offer II 091. 粉刷房子 (DP问题)
猜你喜欢
![[MPC] ① quadratic programming problem matlab solver quadprog](/img/be/5e300255041e3348b933bc32e2ea46.png)
[MPC] ① quadratic programming problem matlab solver quadprog

Rising stars in Plant Sciences (rsps2022) final Science Lecture (6.30 pm)

《数据安全法》出台一周年,看哪四大变化来袭?

云上“视界” 创新无限 | 2022阿里云直播峰会正式上线

A new round of popularity of digital collections opens

Zero foundation software testing must see, 10 years of testing old bird's conscience suggestions (a total of 15)

leetcode:111. Minimum depth of binary tree

CRC 校驗

12款大家都在用的產品管理平臺

Wireshark TS | 快速重传和乱序之混淆
随机推荐
爬虫(2) - Requests(1) | Requests模块的深度解析
Database experiment report (I)
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
Prefabricated dishes usher in the "golden age", who can lead the next trillion market
flutter path_provider: ^2.0.10可以获取临时目录
MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性
IDEA运行报错Command line is too long. Shorten command line for...
12. Gateway new generation gateway
CRC 校驗
Half of 2022 has passed, isn't it sudden?
投稿开奖丨轻量应用服务器征文活动(5月)奖励公布
零基础入行软件测试必看,10年测试老鸟的良心建议(共15条)
Lack of comparator, operational amplifier to save the field! (the op amp is recorded as a comparator circuit)
Detailed explanation of linear regression in machine learning
Programmers want to go to state-owned enterprises? The technology is backward and the salary is low. I can't find a job after lying flat for several years
NC | intestinal cells and lactic acid bacteria work together to prevent Candida infection
内存泄漏定位工具之 valgrind 使用
使用强大的DBPack处理分布式事务(PHP使用教程)
推荐一款 JSON 可视化工具神器!
华为HMS Core携手超图为三维GIS注入新动能