new FileReaderAsync()
- Source:
Methods
readAsArrayBuffer(blob) → {Promise.<ArrayBuffer>}
Parameters:
| Name | Type | Description |
|---|---|---|
blob |
Blob | The |
- Source:
Returns:
The Blob data
- Type
- Promise.<ArrayBuffer>
readAsBinaryString(blob) → {Promise.<String>}
Parameters:
| Name | Type | Description |
|---|---|---|
blob |
Blob | The |
- Source:
Returns:
The Blob data
- Type
- Promise.<String>
readAsDataURL(blob) → {Promise.<String>}
Parameters:
| Name | Type | Description |
|---|---|---|
blob |
Blob | The |
- Source:
Returns:
The Blob data
- Type
- Promise.<String>
readAsText(blob) → {Promise.<String>}
Parameters:
| Name | Type | Description |
|---|---|---|
blob |
Blob | The |
- Source:
Returns:
The Blob data
- Type
- Promise.<String>
(static) readAs(type, blob) → {Promise.<ArrayBuffer>}
Parameters:
| Name | Type | Description |
|---|---|---|
type |
String | The return type (ArrayBuffer, BinaryString, Text, DataURL) |
blob |
Blob | The |
- Source:
Returns:
The Blob data
- Type
- Promise.<ArrayBuffer>