How can I read a binary string in C#?

Posted by Sergey on Stack Overflow See other posts from Stack Overflow or by Sergey
Published on 2010-05-15T08:39:40Z Indexed on 2010/05/15 8:44 UTC
Read the original article Hit count: 252

Filed under:
|
|
|

There is a php script which sends a binary string to the client application:

$binary_string = pack('i',count($result_matrix));   
foreach ($result_matrix as $row)
{
    foreach ($row as $cell)
    {
        $binary_string .= pack('d',$cell);
    }
}
echo $binary_string;

Silverlight application receives $binary_string via POST protocol. How can I parse this binary string?

Or maybe there is a better way to send matrix from PHP to Silverlight?

© Stack Overflow or respective owner

Related posts about php

Related posts about c#