Page 1 of 1

Reading Binary Data

Posted: Sun Jul 09, 2006 7:55 am
by Gen-ik
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. :)

Posted: Sun Jul 09, 2006 8:16 am
by Weirdan

Posted: Sun Jul 09, 2006 9:09 am
by Gen-ik
Yep, that's the one. 8)

Thanks, mate.