This sample shows an implementation of a method that writes binary data, in a byte array, to the client browser.
This sample implements the WriteStream class, which exposes one method, writeBytes, and contains a byte array called byteArray. When writeBytes is called, the method AspContext.getResponse is called to gain access to the Response object. A special binary form of the Response object's Write method is then used to send the byte array to the client browser.
This project is available in the ...\iissamples\sdk\components\java\Samples subdirectory of the Internet services directory.