Most efficient way to convert data to binary/base2
Posted: Sat Aug 08, 2015 10:48 am
Hi all,
I am trying to find the most efficient way to convert data whether it be text or image data into base 2 binary. However the methods I have research don't seem to be very efficient and was hoping for another method or function to use.
current solution:
chartonum(data)
baseconvert(data,10,2)
and loop through each char add padding etc.
What would be perfect is the base64encode function in livecode but for base2. Any help with this would be great thank you all.
I am trying to find the most efficient way to convert data whether it be text or image data into base 2 binary. However the methods I have research don't seem to be very efficient and was hoping for another method or function to use.
current solution:
chartonum(data)
baseconvert(data,10,2)
and loop through each char add padding etc.
What would be perfect is the base64encode function in livecode but for base2. Any help with this would be great thank you all.