Skip to content

Instantly share code, notes, and snippets.

@ztirom
Last active April 22, 2016 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ztirom/776b6e6b363f2b17be079df623dde9dd to your computer and use it in GitHub Desktop.
Save ztirom/776b6e6b363f2b17be079df623dde9dd to your computer and use it in GitHub Desktop.
Make a byte64 String from an UTF-8 String in AX2012
public class Example
{
public void main()
{
byte[] bytes = Encoding.UTF8.GetBytes("AX2012R3CU9");
string base64 = Convert.ToBase64String(bytes);
Console.WriteLine(base64);
}
}
// Output:
// QVgyMDEyUjNDVTk=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment