Closed wengxianxun closed 2 weeks ago
I have the same problem. I'd like to show some progress while downloading the drive files, but the File.length property on my drive files fetched by the DriveAPIv3 are always null.
You could wrap the Stream
and log output as it makes progress.
You could put a StreamController
in the middle and listen to events on that.
You could wrap the
Stream
and log output as it makes progress.You could put a
StreamController
in the middle and listen to events on that.
Hi @kevmoo Could you give a quick example please? I'm not 100% sure how I would get the progress out of this (like x/xmb downloaded or x% or something)? Since I would need the stream length beforehand or the file size. The stream length will imply first listening to the stream (but that means the data will already have been transfered) and the latter is always null when I try to fetch that. Thank you.
how to listen file size progress?