我需要使用 SQLite 将图像文件存储到 SQLite 数据库。
我用了这个方法,
var image = await ImagePicker.pickImage(source: imageSource);
List<int> bytes = await image.readAsBytes();
Run Code Online (Sandbox Code Playgroud)
问题 1 - 创建表时的类型是什么?(CREATE TABLE registerTable(image ?,) 问题 2 - 如何再次转换为文件?
我想在 sqlite 中检索图像数据。我使用下面的代码
var image = await ImagePicker.pickImage(source: imageSource);
List<int> bytes = await image.readAsBytes();
Run Code Online (Sandbox Code Playgroud)
我想拍摄图像并保存后sqlite。是否可以从sqlite数据库获取和设置图像?