Reading Binary Data
Posted: Sun Jul 09, 2006 7:55 am
Hi, guys.
Ok, here's the situation: I'm currently using ActionScript 3.0 to send a ByteArray to a PHP file on the server, and then using file_get_contents("php://input") to grab the binary data.
Here's the problem: $data is a binary file ( or string in this case ) that contains X number of unsigned integer values (colour values for an image). I have no idea how to read those integers from the binary data.
Could someone please point me in the right direction.
Thanks.
Ok, here's the situation: I'm currently using ActionScript 3.0 to send a ByteArray to a PHP file on the server, and then using file_get_contents("php://input") to grab the binary data.
Here's the problem: $data is a binary file ( or string in this case ) that contains X number of unsigned integer values (colour values for an image). I have no idea how to read those integers from the binary data.
Could someone please point me in the right direction.
Thanks.