Skip to content
Related Articles

Related Articles

ASP BinaryWrite Method
  • Last Updated : 07 Aug, 2020

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 binvry 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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<% 
   Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator"
   pic = objBinaryGen.MakePicture 
   response.BinaryWrite pic
 %>

chevron_right


References:

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :