AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Use File Reader as a Stream?
file reader is a stream. You can access that file in the browser with the file reader api, right? Um, but you can also just Take that input grab the the file that you want So there's a dot files property on inputs that are type of file And then just call the dot stream method on it and that will Start to stream that file in from your user's computer into the browser. That's really handy if you want to Crop or resize a file but without having to send it someone might upload a 20 meg File right from their their phone. It's kind of a lot of bandwidth send that to your server just to resize it so you can stream it into the browser