BinaryWrite

The BinaryWrite method writes the specified information to the current content output without any character conversion. This method is useful for writing non-string information such as binary data required by a custom application.

Syntax

Response.BinaryWrite data

 

Parameters
data
The data to write to the content output. This parameter will be of type VT_ARRAY | VT_UI1, which is a variant array of unsigned one-byte characters.
Example

If you have an object that generates an array of bytes, you can use the following call to BinaryWrite to send the bytes to a custom application.

<%
  Set objBinaryGen = Server.CreateObject("ChartGenerator.Pie")
  vntPicture = objBinaryGen.MakeChart
  Response.ContentType = "image/gif"
  Response.BinaryWrite vntPicture
%>
Applies To

Response Object

See Also

Write



©2001-2015 eMill. All trademarks property of their owners.