I'm using dart:io to convert file to bytes. with image and short video it's work. but with large file (more than 1GB) i got error
E/flutter (16030): [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: NewExternalTypedData expects argument 'length' to be in the range [0..1073741823].
my code
Uint8List bytes;
try {
bytes = imageFile.readAsBytesSync();
print('bytes $bytes');
lengthInBytes = bytes.buffer.asByteData().lengthInBytes;
} catch (e) {
print('e $e');
}
it's look like limit of memory. any way to solve this?