Tuesday, May 14, 2013

Convert the Byte array to a String with the ToString method

2.3.1.Convert the part of a Byte array to a String with the ToString method.
ThIs is an idea to Convert Byte to String
' 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

No comments:

Post a Comment