Codessentials

  • Increase font size
  • Default font size
  • Decrease font size
Home Coding tips .Net Convert byte array to string

Convert byte array to string

Here is how you can convert a byte array into a string:

    Dim b() As Byte = {255, 128, 234, 244}
    Dim s As String = System.Text.Encoding.Default.GetString(b)
  Debug.WriteLine(s)
    Debug.WriteLine(System.Text.Encoding.Default.GetByteCount(s))
Result:

String = ÿ€êô
Byte count = 4
 

Bookmark

AddThis Social Bookmark Button

Related Articles


Newsflash

Yadis! Backup 1.9.8 is released!

See the new features right here!

Download this version here!