Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. BYTE array issue

BYTE array issue

Scheduled Pinned Locked Moved Web Development
comjavascriptdata-structurestoolshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dave_
    wrote on last edited by
    #1

    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.

    C S 2 Replies Last reply
    0
    • D Dave_

      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.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Dave_ wrote:

      http://tinyurl.com/25762x

      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

      1 Reply Last reply
      0
      • D Dave_

        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.

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #3

        Try VBArray[^].

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups