Fix for reading blob

mapFromDatabaseResponse fixed for BlobType
This commit is contained in:
Yaniv Shaked 2021-12-26 21:59:25 +02:00 committed by GitHub
parent 0a2cc40ba5
commit 13ca9d1b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ class BlobType extends SqlType<Uint8List> {
@override
Uint8List? mapFromDatabaseResponse(dynamic response) {
return response as Uint8List?;
var list = response.codeUnits;
return Uint8List.fromList(list);
}
@override