WindowBase64
The WindowBase64
helper contains utility methods to convert data to and from base64, a binary-to-text encoding scheme. For example it is used in data URIs.
There is no object of this type, though the context object, either the Window
for regular browsing scope, or the WorkerGlobalScope
for workers, implements it.
Properties
This helper neither defines nor inherits any properties.
Methods
This helper does not inherit any methods.
WindowBase64.atob()
- Decodes a string of data which has been encoded using base-64 encoding.
WindowBase64.btoa()
- Creates a base-64 encoded ASCII string from a string of binary data.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard Die Definition von 'WindowBase64' in dieser Spezifikation. |
Lebender Standard | No change since the latest snapshot, HTML 5.1. |
HTML 5.1 Die Definition von 'WindowBase64' in dieser Spezifikation. |
Empfehlung | Snapshot of HTML Living Standard. No change. |
HTML5 Die Definition von 'WindowBase64' in dieser Spezifikation. |
Empfehlung | Snapshot of HTML Living Standard. Creation of WindowBase64 (properties where on the target before it). |
Browser compatibility
Wir konvertieren die Kompatibilitätsdaten in ein maschinenlesbares JSON Format.
Diese Kompatibilitätstabelle liegt noch im alten Format vor,
denn die darin enthaltenen Daten wurden noch nicht konvertiert.
Finde heraus wie du helfen kannst!
Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 1.0 (1.7 oder früher) [1] | (Ja) | 10.0 | (Ja) | (Ja) |
Feature | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | 1.0 (1) | (Ja) | (Ja) | (Ja) | (Ja) |
[1] atob()
is also available to XPCOM components implemented in JavaScript, even though Window
is not the global object in components.