@POST
    @Consumes(MediaType.WILDCARD)
    @RequestSizeFilter.DoNotLimit
    public void setStreamContents(InputStream data) throws GuacamoleException {

        // Send input over stream
        tunnel.interceptStream(streamIndex, data);

    }
Intercepts the stream represented by this StreamResource, sending the
contents of the given InputStream over that stream as "blob"
instructions.

@param data
    An InputStream containing the data to be sent over the intercepted
    stream.

@throws GuacamoleException
    If the intercepted stream closes with an error.
guacamole/src/main/java/org/apache/guacamole/rest/tunnel/StreamResource.java