Class Guacamole.Blob
Defined in: guacamole.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Guacamole.Blob(mimetype, name)
A blob abstraction used by the Guacamole client to facilitate transfer of
files or other binary data.
|
Field Attributes | Field Name and Description |
---|---|
The mimetype of the data contained within this blob.
|
|
The name of this blob.
|
Method Attributes | Method Name and Description |
---|---|
append(data)
|
|
close()
Closes this Guacamole.Blob such that no further data will be written.
|
|
getBlob()
|
|
Returns the current length of this Guacamole.Blob, in bytes.
|
Event Attributes | Event Name and Description |
---|---|
Fired once this blob is finished and no further data will be written.
|
|
ondata(length)
Fired once for every blob of data received.
|
Class Detail
Guacamole.Blob(mimetype, name)
A blob abstraction used by the Guacamole client to facilitate transfer of
files or other binary data.
- Parameters:
- {String} mimetype
- The mimetype of the data this blob will contain.
- {String} name
- An arbitrary name for this blob.
Field Detail
mimetype
The mimetype of the data contained within this blob.
name
The name of this blob. In general, this should be an appropriate
filename.
Method Detail
append(data)
- Parameters:
- data
close()
Closes this Guacamole.Blob such that no further data will be written.
getBlob()
{Number}
getLength()
Returns the current length of this Guacamole.Blob, in bytes.
- Returns:
- {Number} The current length of this Guacamole.Blob.
Event Detail
oncomplete()
Fired once this blob is finished and no further data will be written.
ondata(length)
Fired once for every blob of data received.
- Parameters:
- {Number} length
- The number of bytes received.