BinaryDecode
Brent Anderson
brentj84062 at gmail.com
Tue Mar 6 11:31:12 EST 2007
Hello.
Thanks for the reply. I put the data in the email in base 64 since I
don't trust email to carry binary values very well. I also solved the
problem: The bytes were in reverse order. Once I had flipped each
four byte chunk, binaryDecode worked perfectly.
Thanks,
Brent Anderson
On Mar 6, 2007, at 1:24 AM, Mark Smith wrote:
> Brent, you need to use the base64Decode function:
>
> put base64Decode(tData) into tBinaryData
>
> then the binaryDecode functions should do what you need.
>
> Best,
>
> Mark
>
> On 6 Mar 2007, at 01:35, Brent Anderson wrote:
>
>> Correction: The base 64 version of the data is this:
>>
>> AAAAAj9b6Lo+qptlQJfA8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA==
>>
>>
>> On Mar 5, 2007, at 5:57 PM, Brent Anderson wrote:
>>
>>> Hello.
>>>
>>> I'm working with a helper application to process some video data.
>>> It's passing in int32 and float32 parameters as binary data and I
>>> need to convert them into actual integers and floating point
>>> values. I've been trying to use BinaryDecode to accomplish this,
>>> however it just isn't working. If anyone can spare a minute, here
>>> is the base64encoded version of my data.
>>>
>>> AAE+uaSzPyPAv0CVBg==
>>>
>>> According to their API, there are two int32's at the front and
>>> eight floating point values on the end.
>>>
>>> Any help would be very much appreciated.
>>>
>>> Thanks,
>>> Brent Anderson
>>> The Christa McAuliffe Space Education Center
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list