hi friends..
i want to store a text into a binary format in database(sqlserver)..
how to do that..
i need coding for that in c# or vb..
regards
gopal
To store a text in binary format into database..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 9, 2008, 2:57 PM EST
string instance = "Bechir Bejaoui";
Encoding encoding = Encoding.Default;
byte[] instanceToByteArray = encoding.GetBytes(instance);