Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Response Object BinaryWrite Method

The BinaryWrite method writes the specified information to the current HTTP output without any character conversion. It is useful for sending non-string information, such as binary data required by custom applications.

Syntax: ASP Response Object BinaryWrite Method

Response.BinaryWrite data

Parameters: ASP Response Object BinaryWrite Method

data

The binary information to be sent.

Examples: ASP Response Object BinaryWrite Method

If you have an object that creates an array of bytes, you can send the results using BinaryWrite:

<%

Set bg = Server.CreateObject(MY.BinaryGenerator)

Pict = bg.MakePicture

Response.BinaryWrite Pict

%>

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.