BYTE array issue
-
Following techniques described at http://tinyurl.com/25762x , I can retrieve a binary file in Firefox and retrieve it from the responseText field of the request response object. However, in IE, the responseText field is empty and the data I'm looking for is in the responseStream field. When running the Microsoft Script Editor, I can view this property and it shows as an array of BYTE with the correct length. However, I can't access it from JavaScript which doesn't have a BYTE data type. I'm looking for 1) a pure JavaScript technique which can get the binary data as a String as in Firefox or 2) a method to convert the BYTE array to a JavaScript String object using a small add-in such as an ActiveX control. Thanks for any advice you can provide.
-
Following techniques described at http://tinyurl.com/25762x , I can retrieve a binary file in Firefox and retrieve it from the responseText field of the request response object. However, in IE, the responseText field is empty and the data I'm looking for is in the responseStream field. When running the Microsoft Script Editor, I can view this property and it shows as an array of BYTE with the correct length. However, I can't access it from JavaScript which doesn't have a BYTE data type. I'm looking for 1) a pure JavaScript technique which can get the binary data as a String as in Firefox or 2) a method to convert the BYTE array to a JavaScript String object using a small add-in such as an ActiveX control. Thanks for any advice you can provide.
Dave_ wrote:
Please supply the proper URL - THere could be anything behind that URL.
Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Mixins in C#3.0 My website | Blog
-
Following techniques described at http://tinyurl.com/25762x , I can retrieve a binary file in Firefox and retrieve it from the responseText field of the request response object. However, in IE, the responseText field is empty and the data I'm looking for is in the responseStream field. When running the Microsoft Script Editor, I can view this property and it shows as an array of BYTE with the correct length. However, I can't access it from JavaScript which doesn't have a BYTE data type. I'm looking for 1) a pure JavaScript technique which can get the binary data as a String as in Firefox or 2) a method to convert the BYTE array to a JavaScript String object using a small add-in such as an ActiveX control. Thanks for any advice you can provide.