I want to find out the size of an Uint8List
image before I upload it to firebase storage using
StorageUploadTask uploadTask = reference.putData(uint8ListImage);
wherein uint8ListImage
is a Uint8List
. Is there a way to find out the size of the Uint8List
?
try this,
print(uint8ListImage.lengthInBytes);
this will print the size in bytes