Good morning guys, I’m from Brazil, I understand very little English, so I use the Google translator, sorry for my English, I need some help with a code here, I can’t get past this line for weeks, I want to record some blob images that are inside the mysql bank online, for a sqlite blob bank, and then display for my system to work offline, text that are not blob I got good with the same code, I believe it is a conversion thing.
code
void _AtualizaImagemProd() {
db.getConnection().then((qProdImagem) {
String sql = 'SELECT * FROM PRODIMAGEM where length(IMAGEM) < 20000 ';
print(sql);
qProdImagem.query(sql).then((results) {
for(var row in results){
setState(() {
print(row[0]);
ProdImagem.insert({
‘CODPRD’: row[0],
‘IMAGEM’: row[1],
});
});
//Image.memory(row[1])
print(row[0]);
// new Container( child: new Image.memory(image));
}
});
qProdImagem.close();
});
}
error
Performing hot reload…
Syncing files to device Android SDK built for x86…
Reloaded 3 of 726 libraries in 268ms.
I/flutter (20197): passou produto = 000312
I/flutter (20197): gravou produto = 000312
I/flutter (20197): ����
I/flutter (20197): passou produto = 003430
I/flutter (20197): gravou produto = 003430
I/flutter (20197): ����
I/flutter (20197): passou produto = 003430
I/flutter (20197): gravou produto = 003430
I/flutter (20197): ����
I/flutter (20197): passou produto = 002755
I/flutter (20197): gravou produto = 002755
I/flutter (20197): ����
I/flutter (20197): passou produto = 002755
I/flutter (20197): gravou produto = 002755
I/flutter (20197): ����
I/flutter (20197): passou produto = 003118
I/flutter (20197): gravou produto = 003118
I/flutter (20197): ����
I/flutter (20197): passou produto = 002079
I/flutter (20197): gravou produto = 002079
I/flutter (20197): ����
I/flutter (20197): passou produto = 002079
I/flutter (20197): gravou produto = 002079
I/flutter (20197): ����
I/flutter (20197): passou produto = 002060
I/flutter (20197): gravou produto = 002060
I/flutter (20197): ����
I/flutter (20197): passou produto = 002060
I/flutter (20197): gravou produto = 002060
I/flutter (20197): ����
it gets these strange characters and the error.
all help is welcome Thank you all