Skip to content
Related Articles

Related Articles

ASP BinaryWrite Method

View Discussion
Improve Article
Save Article
  • Last Updated : 26 Apr, 2021

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.


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: 


   Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator")
   pic = objBinaryGen.MakePicture
   response.BinaryWrite pic


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!