SetResponseStream Method
Sets a stream to be served as a response.
Syntax
public void setResponseStream(long connectionId, java.io.InputStream dataStream, boolean closeStream, String contentType);
Remarks
Use this property to provide the response content in a stream. Set CloseStream to indicate that the stream should be disposed of once sent.