mysql.dart icon indicating copy to clipboard operation
mysql.dart copied to clipboard

Blob-Data

Open ChristophKe opened this issue 2 years ago • 2 comments

Can you please provide an example for Blob-Data?

How to store and retrieve an Uint8List in and from medium blob column? Regards, Christoph

ChristophKe avatar Feb 26 '23 14:02 ChristophKe

at the moment I am converting my uint8List to String to insert it and convert it back on loading... This can´t be the way to do it, right?

before Insert/update: String myBlobDataAsString = String.fromCharCodes(myUint8Data);

after select: Uint8List myUint8Data = Uint8List.fromList(myBlobDataAsString.codeUnits);

ChristophKe avatar Mar 07 '23 10:03 ChristophKe

Any update for this?

patricknicolosi avatar Mar 21 '24 00:03 patricknicolosi