Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Base64 decoding to byte array

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Feb 2014 18:47
Working with my previous Base64 library, I was trying to implement the added support into my TMX library. The problem, TMX data was encoded from raw bytes and not the string equivalent seen in the XML.

Use this function in conjunction with the code snippet linked above. It will create a global array called B64 which stores the decoded bytes, and the function returns the size of the array. When you're done with the data, just undim B64[]



As a side note, using 64 for the base in the val() command crashes AppGameKit for me.


Login to post a reply

Server time is: 2024-11-25 02:49:03
Your offset time is: 2024-11-25 02:49:03