Blob: bytes() Methode
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die bytes()
Methode des Blob
Interfaces gibt ein Promise
zurück, das mit einem Uint8Array
aufgelöst wird, das den Inhalt des Blobs als Byte-Array enthält.
Syntax
js
bytes()
Parameter
Keine.
Rückgabewert
Ein Promise
, das mit einem Uint8Array
Objekt aufgelöst wird, welches die Blob-Daten enthält.
Ausnahmen
Die Methode wird das zurückgegebene Promise
ablehnen, wenn zum Beispiel der Leser, der verwendet wird, um die Daten des Blobs abzurufen, eine Ausnahme auslöst.
Spezifikationen
Specification |
---|
File API # dom-blob-bytes |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bytes |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.