Raed Sawalha <Ra*********@discussions.microsoft.com> wrote:
I have list of name separated by comm like this
name1,name2,name3,...etc
i converted then to Base-64 using Convert.ToBase64String() then pass them to
webmethod then i when try to get data back to original using
Convert.FromBase64String a crash generated with following error:
Invalid Lenght for Base-64 char array
what is the reason? the problem sometime code work and sometime it is crashed?
Is this a bug or what???
It sounds like it's probably a bug in your code. If it's not, you
should be able to produce a string x such that
Convert.FromBase64String(Convert.ToBase64String(x) );
throws an exception. I'm sure if you can find such a string, MS would
be very keen on hearing about it.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too