i am developing flutter app and i need to send Thumbnail from a video to firebase storage
i am trying to do somthing like this
Uint8List VideoThumbnail ;
onPressed: () async {
final result = await FilePicker.platform.pickFiles(allowMultiple: false, );
final path = result.files.single.path;
setState(() => file = File(path));
if (file == null) {
return;
}
final img = await VideoCompress.getByteThumbnail(file.path) ;
// setState(() => this.VideoThumbnail = img );
if (file == null) return;
final fileName = basename(file.path);
final destination = 'files/$fileName';
task = FirebaseApi.uploadFile( destination,file); // here wont accept VideoThumbnail variable
setState(() {});