Open In App

ASP BinaryWrite Method

The ASP BinaryWrite Method is used to specify to write the data to the current HTTP output. without any character conversion. This method is used to write the non-string information such as Binary data required for the image. It is a predefined method of the Response type Object.

Syntax:



response.BinaryWrite data 

Parameter Values:

Return Value: This method has no return value.
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("MyComponents.BinaryGenerator")
   pic = objBinaryGen.MakePicture
   response.BinaryWrite pic
 %>

References:

https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524861(v=vs.90)

Article Tags :