
April 17th, 2004, 09:07 AM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Base64 Help, C# please
Code:
StringBuilder sb = new StringBuilder();
try
{
byte[] b = Convert.FromBase64String(textBox1.Text);
for (int i = 0; i < b.Length; i++)
{
sb.Append(Convert.ToChar(b[i]));
}
textBox2.Text = sb.ToString();
}
catch(Exception e)
{
textBox2.Text = e.Message;
}
Why the hell does this only print 1 character? (Its the right character, but still only one!), Any help would be really very much appreciated!
Thanks very much in advanced,
Phishy
|