zim32 / mysql.dart

MySQL client for Dart written in Dart
BSD 3-Clause "New" or "Revised" License
64 stars 17 forks source link

Blob-Data #50

Open ChristophKe opened 1 year ago

ChristophKe commented 1 year ago

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 commented 1 year ago

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);

patricknicolosi commented 3 months ago

Any update for this?