The manual Page
Version française
     Method Response.BinaryWrite  
[ index | glossary | news | downloads | links ]
 
  introduction to ASP
writting in ASP
ASP variables
the ASP 3.0 objects
the object Request
   .TotalBytes
   .ClientCertificate
   .Cookies
   .Form
   .QueryString
   .ServerVariables
   .BinaryRead
the object Response
   .Status
   .Cookies
   .AddHeader
   .AppendToLog
   .BinaryWrite
   .Clear
   .End
   .Flush
   .Redirect
   .Write
 
news
glossary
downloads
 
guest book
credits
contact
 
 
research
 
last update
25/03/2002
Valid HTML 4.0!
Valid CSS!
Hit-Parade
Measure your audience

Synopsis

Response.BinaryWrite(Data)

We use this method to write some binary data in the response's body. This method is hardly used.

Data is mandatory.

Example

A simple way to get some binary data worth being printed out with Response.BinaryWrite is to use the method Request.BinaryRead and a form:

Initial form:

<FORM action="form.asp" method="post">
	Surname: <INPUT type="text" name="surname"><BR>
	Name: <INPUT type="text" name="name"><BR>
	Age: <INPUT type="text" name="age"><BR>
	<INPUT type="submit" value="OK">
</FORM>

form.asp:

<%
Response.BinaryWrite(Request.BinaryRead(Request.TotalBytes))
%>

This could render:

surname=foo&name=bar&age=28

A similar use that could render a more spectacular result consists in using a form that allows you send a file to the server (i.e. do file upload).

printable format printable format



Copyright © 2000-2002 themanualpage.org - This site is submissive to the terms of the GNU GPL and FDL licences.