我的问题与this one非常相似。 但是对于silverlight来说它是php。
我的php代码(服务器编码):
$str = 'This is the string';
$encoded = base64_encode($str);
如何在Silverlight 2中实现解码后的字符串?
答案 0 :(得分:1)
这个问题实际上与PHP无关,只是解码Silverlight中的base64字符串 - 如果相信快速的谷歌搜索,就会发生这样的事情:
byte[] content = System.Convert.FromBase64String(base64string);