Re: [w3c/editing] Delayed clipboard rendering API shape. (Issue #423)

>Can Blob APIs be used to stream data instead?

One can convert blobs into streams and streams into blobs, but a blob itself is by design a readonly snapshot object that does not change after its construction. Not sure that's the proper answer for your question, could you provide some example in your mind if not?

> Basically, in the callback, can the web authors use the streaming APIs to write data into the Blob?

One cannot "write data into the (existing) blob" in any way as Blob is designed to be constant. But you can create a new blob from a stream: `new Response(stream).blob()`

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/423#issuecomment-1874518930
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/423/1874518930@github.com>

Received on Tuesday, 2 January 2024 20:35:53 UTC