Converting to binary

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gurra

    Converting to binary

    I am using XMLhttp and responsebody to receive info from a webpage
    I dont use responsetext since i need the international chars åäö

    The information I recieve is binary is there any fast way to convert the
    binary data to text ?

    I used this function but its slow compared to response.binary write
    and i need the information in a string so I can alter it with my script.

    So is there any way to convert Binary to Text just as fast as
    response.binary write ?

    Function BinaryToString( Binary)
    Dim I, S
    For I = 1 To LenB(Binary)
    S = S & Chr(AscB(MidB(B inary, I, 1)))
    Next
    BinaryToString = S
    End Function


Working...