Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to get image file size in flutter

final bytes = image.readAsBytesSync().lengthInBytes;
final kb = bytes / 1024;
final mb = kb / 1024;
 
PREVIOUS NEXT
Tagged: #image #file #size #flutter
ADD COMMENT
Topic
Name
9+4 =