title: How do you read data from a ADODB stream in ASP as byte values?
body: <p>I have an ASP routine that gets a binary file's contents and writes it to a stream.  The intention is to read it from the stream and process it at the server.</p>
  
  <p>So I have:</p>
  
  <pre><code>ResponseBody = SomeRequest (SomeURL) ;
  
  var BinaryInputStream = Server.CreateObject ("ADODB.Stream") ;
  BinaryInputStream.Type = 1 ; // binary
  BinaryInputStream.Open ;
  BinaryInputStream.Write (ResponseBody) ;
  BinaryInputStream.Position = 0 ;
  
  var DataByte = BinaryInputStream.Read (1) ;
  
  Response.Write (typeof (DataByte)) ; // displays "unknown"
  </code></pre>
  
  <p>How do I get the byte value of the byte I have just read from the stream?</p>
  
  <p>Asc () and byte () don't work (JScript)</p>
  
  <p>TIA</p>