Re: [PHP] Pack function in C#

2007-09-09 Thread Per Jessen
Symbian wrote:

 
 hello,
 
 Our PHP dev (who has since left) uses the pack function to turn a
 base64 string into a binary blob (?):
 
 $blob = pack(H*, $postBase64Data);
 
 Does anyone know what the above is doing? 

Doesn't the manual tell you:

http://www.php.net/manual/en/function.pack.php


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Pack function in C#

2007-09-08 Thread Symbian

hello,

Our PHP dev (who has since left) uses the pack function to turn a base64
string into a binary blob (?):

$blob = pack(H*, $postBase64Data);

Does anyone know what the above is doing? I need to translate that to C#
terms, which I thought was getting the eqivalent of the bytes:

byte[] blob = ASCIIEncoding.UTF8.GetBytes(postedData);

But this may not be right.

Sym
-- 
View this message in context: 
http://www.nabble.com/Pack-function-in-C--tf4407990.html#a12575709
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php