GUAC-240: Read images received through "img" streams using a Guacamole.DataURIReader - appending to standard Blob objects is too slow.

This commit is contained in:
Michael Jumper
2015-08-11 19:17:06 -07:00
parent d393a833f4
commit 63b31cf0b1
2 changed files with 89 additions and 3 deletions

View File

@@ -897,12 +897,12 @@ Guacamole.Client = function(tunnel) {
// Create stream
var stream = streams[stream_index] = new Guacamole.InputStream(guac_client, stream_index);
var reader = new Guacamole.BlobReader(stream, mimetype);
var reader = new Guacamole.DataURIReader(stream, mimetype);
// Draw blob when stream is complete
// Draw image when stream is complete
reader.onend = function drawImageBlob() {
display.setChannelMask(layer, channelMask);
display.drawBlob(layer, x, y, reader.getBlob());
display.draw(layer, x, y, reader.getURI());
};
},