C# Programming
04-29-2009, 11:22 AM
I have this code in my project:
string str;
byte[] enc = new byte[str.length];
enc = Convert.FromBase64String(str);
when i trace it, in the 2nd line the enc is a byte with the length of str but when 3rd line executes the enc length becomes 1 and therefore my data is not valid at the end.
does anybody know what should i do?
Roshanak
string str;
byte[] enc = new byte[str.length];
enc = Convert.FromBase64String(str);
when i trace it, in the 2nd line the enc is a byte with the length of str but when 3rd line executes the enc length becomes 1 and therefore my data is not valid at the end.
does anybody know what should i do?
Roshanak