How do you read data from ADODB stream to ASP as bytes?
I have an ASP routine that gets the content of a binary file and writes it to a stream. The goal is to read it from the stream and process it on the server.
So, I have a:
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"
How do I get the byte value of the byte I just read from the stream?
Asc () and byte () not working (JScript)
TIA
+2
a source to share
1 answer
I asked this question again in desperation and solved the problem. See Accessing a binary response by bytes in classic asp / JScript
0
a source to share