How to convert an array of bytes into a string with VB.NET

1 Answer

0 votes
Imports System
				
Public Module Module1
	Public Sub Main()
		Dim barray() As Byte = new Byte(){97, 98, 99}
		
		Dim s As String = System.Text.Encoding.UTF8.GetString(barray)

		Console.WriteLine(s)
	End Sub
End Module


 
' run:
'
' abc
'

 



answered Jan 20, 2021 by avibootz

Related questions

1 answer 261 views
1 answer 253 views
1 answer 191 views
1 answer 117 views
117 views asked Aug 20, 2023 by avibootz
1 answer 155 views
155 views asked Aug 20, 2023 by avibootz
...