Open In App

ASP BinaryWrite Method

Improve
Improve
Like Article
Like
Save
Share
Report

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:

  • data: It specify the binary information that will be sent

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: 
 

javascript




<%
   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)


Last Updated : 26 Apr, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads