Discussion: Pack function in C#
Afficher un message
Vieux 09/09/2007, 04h32   #1
Symbian
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Pack function in C#


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-...html#a12575709
Sent from the PHP - General mailing list archive at Nabble.com.
  Réponse avec citation
 
Page generated in 0,05192 seconds with 9 queries