String stringData = "hello world";
Byte byteData = Encoding.ASCII.GetBytes(stringData);
stringData = Convert.ToBase64String(byteData);
Sunday, September 25, 2011
C#: Encode String into base64
Below is the c# code that will convert the provided string into it's corresponding base64 string. This code will first convert the string into byte array, after that it will convert the array into base64 string.
This little piece of code will help you to get the function name programatically. This is very helpful when you are implementing the debug...
Many other programming languages, Python does have the comparator facility to sort a list according to your need. You can define a customize...
Sometimes you may need to run the wget under a silent mode, means it will not display any output on the screen while executing. Usually the ...