so i'm getting the error shown in the image and my question is: How should I use stream.cast in this case?
Try to change this :
var stream = new http.ByteStream(DelegatingStream.typed(_image.openRead()));
To this :
var stream = new http.ByteStream(_image.openRead());
stream.cast();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With