Forum Discussion

jeko0o's avatar
jeko0o
Visitor
14 years ago

decode base64

guys could help me with this, I decode base64 and print the result, as I was able to encode but I failed to perform the reverse process.


encode:

ba=CreateObject("roByteArray")
ba.FromAsciiString("example.")

print ba.ToBase64String()

2 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert

    ba = CreateObject("roByteArray")
    ba.FromAsciiString("example.")
    str = ba.ToBase64String()
    ba.FromBase64String(str)
    print ba.ToAsciiString()

    -JT