Answers for ".net c# byte to hex string"

C#
3

byte array to hex c#

public static string ByteArrayToString(byte[] ba)
{
  return BitConverter.ToString(ba).Replace("-","");
}
Posted by: Guest on December-16-2020
1

convert bytes to string and back c#

string base64 = Convert.ToBase64String(bytes);
byte[] bytes = Convert.FromBase64String(base64);
Posted by: Guest on October-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language