isar / isar/hive

adding images

Open
#1,083 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
I am tring to add images into my Hive database, but I am getting an error
'unhandled Exception: type 'String is not a subtype of type uint8list in type cast

**Code sample**
@HiveField(10)
late Uint8List imageFile;

////////

it complains about the generated code in the adapter

..imageFile = fields[10] as Uint8List
Provide a few simple lines of code to show your problem.
```

**Version**
- Platform: iOS, Android, Mac, Windows, Linux, Web
- Flutter version: 3
- Hive version: 2.2.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.