binaryType property
Returns the type of data received by onmessage.
This property is read/write.
Syntax
| JavaScript |
|---|
object.binaryType = binaryType binaryType = object.binaryType |
Property values
Type: DOMString
The type of data received.
| Value | Condition |
|---|---|
|
Represents raw data. The event's data property is initialized to a blob object. See msStreamReader.readAsBlob. |
|
Represents a binary data buffer. The event's data property is initialized to an ArrayBuffer object. See FileReader.readAsArrayBuffer. |
See also
Show: