Assertion: blob's type | /r/HasProperty | text
Facets:
Source sentences:
text: // create Blob from a typed array and strings let hello = new Uint8Array(); // "Hello" in binary form let blob = new Blob([hello, ' ', 'world'], {type: 'text/plain'});
text: <a download="hello.txt" href='#' id="link">Download</a> <script> let blob = new Blob(["Hello, world!"], {type: 'text/plain'}); link.href = URL.createObjectURL(blob); <
text: let link = document.createElement('a'); link.download = 'hello.txt'; let blob = new Blob(['Hello, world!'], {type: 'text/plain'}); link.href = URL.createObjectURL(blob); link.click();
text: let link = document.createElement('a'); link.download = 'hello.txt'; let blob = new Blob(['Hello, world!'], {type: 'text/plain'}); let reader = new FileReader(); reader.readAsDataURL(blob); // converts the blob to base64 and calls onload reader.onload = function() { link.href = reader.result; // data url link.click(); };
text: // create Blob from a typed array and strings let hello = new Uint8Array(); // "Hello" in binary form let blob = new Blob([hello, ' ', 'world'], {type: 'text/plain'});
text: <a download="hello.txt" href='#' id="link">Download</a> <script> let blob = new Blob(["Hello, world!"], {type: 'text/plain'}); link.href = URL.createObjectURL(blob); <
text: let link = document.createElement('a'); link.download = 'hello.txt'; let blob = new Blob(['Hello, world!'], {type: 'text/plain'}); link.href = URL.createObjectURL(blob); link.click();
text: let link = document.createElement('a'); link.download = 'hello.txt'; let blob = new Blob(['Hello, world!'], {type: 'text/plain'}); let reader = new FileReader(); reader.readAsDataURL(blob); // converts the blob to base64 and calls onload reader.onload = function() { link.href = reader.result; // data url link.click(); };
text: Type: text
text: ; var blob = new Blob(['abc123'], {type: 'text/plain'}); oReq.send(blob);