> MSDN document says the "xmlhttp.responseBody" method could return a
> Array.But I can't get anything use this method .Could anyone give me
> a example on how to use the "responseBody" method? Thks!
Well, responseBody is an array of unsigned bytes and JScript doesn't
support that datatype so there is not much you can do with that property
in JScript, besides passing it on to a method taking that kind of array
as a parameter, for instance
Response.BinaryWrite
Here is an example reading a GIF image
<%@ Language="JScript" %>
<%
var httpRequest = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0");
httpRequest.open("GET", "http://localhost/javascript/kiboInside.gif",
false);
httpRequest.send();
Response.ContentType = 'image/gif';
Response.BinaryWrite(httpRequest.responseBody);
%>

Signature
Martin Honnen
http://JavaScript.FAQTs.com/
lyo - 10 Mar 2004 05:21 GMT
Thks for your reply
But I use java and Javascript other than VBScript or JScript.How to get the array using javascript? Whether I can do this?
Joe Fawcett - 12 Mar 2004 11:36 GMT
> Thks for your reply:
>
> But I use java and Javascript other than VBScript or JScript.How to get the array using javascript? Whether I can do this?
But what do you want to do with it? You could use adodb.stream class and
write the data to that.

Signature
Joe