server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpResponseWrapper.java
public OHttpResponseWrapper sendStream(final int iCode, final String iReason, final String iContentType,
      final InputStream iContent, final long iSize) throws IOException {
    response.sendStream(iCode, iReason, iContentType, iContent, iSize);
    return this;
  }
public OHttpResponseWrapper sendStream(final int iCode, final String iReason, final String iContentType,
      final InputStream iContent, final long iSize) throws IOException {
    response.sendStream(iCode, iReason, iContentType, iContent, iSize);
    return this;
  }
Sends the complete HTTP response in one call specifying a stream as content.

@param iCode
HTTP response's Code
@param iReason
Response's reason
@param iContentType
Response's content type
@param iContent
java.io.InputStream object
@param iSize
Content size in bytes
@return The object itself for fluent chained calls