Binary Data Output Sample

This sample is located in \Samples\ASP.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

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.

Using the Sample

See Using the ASP Samples for instructions on installing, running, and uninstalling this sample.

Key Project Files

WriteStream.java

This class uses the framework to output binary data.

WriteStream_test.asp

This file adds standard HTML tags and metadata to the Java file.

Technologies Demonstrated

ASP

© 1999 Microsoft Corporation. All rights reserved. Terms of use.