Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jeko0o
Visitor

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()
0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: decode base64


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

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
jeko0o
Visitor

Re: decode base64

great !!..thanks a lot JT
0 Kudos