new BlobReader(stream, mimetype)
A reader which automatically handles the given input stream, assembling all
received blobs into a single blob by appending them to each other in order.
Note that this object will overwrite any installed event handlers on the
given Guacamole.InputStream.
Parameters:
Name | Type | Description |
---|---|---|
stream |
Guacamole.InputStream | The stream that data will be read from. |
mimetype |
String | The mimetype of the blob being built. |
- Source:
Methods
getBlob() → {Blob}
Returns the contents of this Guacamole.BlobReader as a Blob.
- Source:
Returns:
The contents of this Guacamole.BlobReader.
- Type
- Blob
getLength() → {Number}
Returns the current length of this Guacamole.InputStream, in bytes.
- Source:
Returns:
The current length of this Guacamole.InputStream.
- Type
- Number
Events
onend
Fired once this stream is finished and no further data will be written.
- Source:
onprogress
Fired once for every blob of data received.
Parameters:
Name | Type | Description |
---|---|---|
length |
Number | The number of bytes received. |
- Source: