This sample is located in \Samples\ASP.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
This sample shows an implementation of a method that writes binary data in byte-array form 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.
See Using the ASP Samples for instructions on installing, running, and uninstalling this sample.
This class uses the framework to output binary data.
WriteStream_test.aspThis file adds standard HTML tags and metadata to the Java file.