Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / March 2004

Tip: Looking for answers? Try searching our database.

Why I can't get xmlhttp.responseBody value?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lyo - 04 Mar 2004 02:31 GMT
Hi everyone

     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!
Martin Honnen - 05 Mar 2004 14:42 GMT
> 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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.