当前位置:网站首页>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;
});
}
边栏推荐
- Is it safe to open a stock account online in 2022? Is there any danger?
- 【MPC】①二次规划问题MATLAB求解器quadprog
- NC | 肠道细胞和乳酸菌共同作用来防止念珠菌感染
- [matytype] insert MathType inter line and intra line formulas in CSDN blog
- LeetCode.每日一题 剑指 Offer II 091. 粉刷房子 (DP问题)
- LeetCode 438. 找到字符串中所有字母异位词__滑动窗口
- Valgrind usage of memory leak locating tool
- Database experiment report (II)
- 推荐一款 JSON 可视化工具神器!
- 机器学习之线性回归详解
猜你喜欢

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
![[.net6] use ml.net+onnx pre training model to liven the classic](/img/b3/b117481fba7257453011e4cdb1eaaa.png)
[.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B

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

NeurIPS 2022 | 细胞图像分割竞赛正式启动!

Kotlin 协程调度切换线程是时候解开真相了

【Matytype】在CSDN博客中插入Mathtype行间与行内公式

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

零基础入行软件测试必看,10年测试老鸟的良心建议(共15条)

MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性

【邂逅Django】——(二)数据库配置
随机推荐
SQL server2014 failed to delete the database, with an error offset of 0x0000
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
Rising stars in Plant Sciences (rsps2022) final Science Lecture (6.30 pm)
Daily mathematics serial 55: February 24
12款大家都在用的产品管理平台
《数据安全法》出台一周年,看哪四大变化来袭?
Matplotlib data visualization Foundation
Today in history: the semiconductor war in the late 1990s; Von Neumann published the first draft; CBS acquires CNET
CRC 校驗
leetcode:111. Minimum depth of binary tree
Sqlachemy common operations
有大佬知道这是为啥吗?表结构都是刚直接复制的源表 mysql-cdc
flutter Uint8List格式的图片和File格式图片的互相转换
mysql如何把 一个数据库中的表数据 复制到 另一个数据库中(两个数据库不在同一个数据库链接下)
12. Gateway new generation gateway
Design and practice of new generation cloud native database
Which securities company has a low, safe and reliable Commission for stock trading and account opening
. Net 5.0+ does not need to rely on third-party native implementation of scheduled tasks
Submission lottery - light application server essay solicitation activity (may) award announcement
Error: missing revert data in call exception