I want to convert a binary to a string.(Database contains binary data stored.)
What writer to use(like StreamWriter)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Apr 18, 2011, 10:54 PM
Suthish NairPosted Apr 18, 2011, 2:00 PM
Chandra Sekhar KPosted Apr 18, 2011, 2:04 AM
Suthish NairPosted Apr 15, 2011, 10:40 AM
Suthish NairPosted Apr 15, 2011, 6:24 AM
1.
Byte[] Bytearray = { c, s, k };
string sout = Convert.ToBase64String(Bytearray);
2.
string sout = "Chandra Sekhar K";
byte []Bytearray = System.Text.Encoding.ASCII.GetBytes(sout);
string sout1 = Convert.ToBase64String(Bytearray);