str string = 'some string'; // Convert String to System.IO.Stream System.Byte[] byteArray = System.Text.Encoding::get_UTF8().GetBytes(string); //System.Byte[] byteArray = System.Text.Encoding::get_ASCII().GetBytes(string); System.IO.MemoryStream stream = new System.IO.MemoryStream(byteArray); // Convert Byte array to String string = System.Text.Encoding::get_UTF8().GetString(byteArray); //string = System.Text.Encoding::get_ASCII().GetString(byteArray);
If you found value in what I share, I've set up a Buy Me a Coffee page as a way to show your support.
Buy Me a CoffeeNo comments. Be the first one to comment on this post.
DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.
Authors are allowed to set their own "buy me a coffee" link.
Join us.