Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  Response.BinaryWrite

Response.BinaryWrite(Data)

The BinaryWrite method writes nonstring data (binary data) to the current HTTP output without any character set conversion.

This method can use the output of the Request.BinaryRead method. For example, you could retrieve an image from a database with Request.BinaryRead and send it to a client using Response.BinaryWrite.

There is one mandatory argument.

Data

The Data argument is the data to send to the HTTP output.

Code:
-------------------File1.asp------------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="File2.asp" method="POST">
Name:<input type="Text" name="name" maxlength="30"><BR>
Age:<input type="Text" name="age" maxlength="10"><BR>
Sex:<input type="Text" name="Sex" maxlength="10"><BR>
<input type="Submit" name="submit" value="submit"><BR>
</form>
</BODY>
</HTML>
 
-------------------File2.asp------------------
<%
bytecount = Request.TotalBytes
binread = Request.BinaryRead(bytecount)
Response.BinaryWrite binread
%>


Output:
name=Jane&age=25&Sex=Female&submit=submit
 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information