Answers for "create string from byte array c#"

C#
22

c# string to byte array

string author = "Mahesh Chand";  
// Convert a C# string to a byte array  
byte[] bytes = Encoding.ASCII.GetBytes(author);  

// Convert a byte array to a C# string. 
string str = Encoding.ASCII.GetString(bytes);
Posted by: Guest on April-17-2020
1

c# store byte array as string

string bitString = BitConverter.ToString(bytes);
Posted by: Guest on January-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language