G
Guest
How can we convert the integer values to byte arrays using C#.NET
Shankar said:How can we convert the integer values to byte arrays using C#.NET
avnrao said:Encoding.UTF8.GetBytes(i.ToString());
shankar said:Yes, it was useful. But again i got one problem of using this UTF8
1. I have one string that i'm encrypting and getiing byte[]
but in SQL data base i have the field type varchar for that one i converting
that
byte[] to string and storing database. when I'm going to Decrypt that string
i'm getting length problem.