Convert the part of a Byte array to a String with the ToString method. : Byte « Data Type « VB.Net Tutorial






' Example of some BitConverter.ToString( ) method overloads.
Imports System
Imports Microsoft.VisualBasic

Module BytesToStringDemo
    Sub Main( )
        Dim arrayOne as Byte( ) = { _
              0,   0,   0,   0, 128,  63,   0,   0, 112,  65, _
              0, 255, 127,  71,   0,   0, 128,  59,   0,   0, _
              0,   0,   0, 192, 255,   0,   0, 128, 255,   0, _
              0, 128, 127 }

        Console.WriteLine(BitConverter.ToString( arrayOne))
    End Sub 
End Module








2.3.Byte
2.3.1.Convert the part of a Byte array to a String with the ToString method.