Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,914 questions

51,847 answers

573 users

How to convert a byte array to a string in VB.NET

2 Answers

0 votes
Imports System

Public Class Test
    Public Shared Sub Main()
        Dim b_arr() As Byte = {0, 2, 30, 160, 255}
        Dim s As String

        s = BitConverter.ToString(b_arr)

        Console.WriteLine(s)
    End Sub
End Class



' run:
'
' 00-02-1E-A0-FF
'

 



answered Aug 5, 2019 by avibootz
0 votes
Imports System

Public Class Test
    Public Shared Sub Main()
        Dim b_arr() As Byte = {0, 2, 30, 160, 255}
        Dim s As String

        s = Convert.ToBase64String(b_arr)

        Console.WriteLine(s)
    End Sub
End Class



' run:
'
' AAIeoP8=
'

 



answered Aug 5, 2019 by avibootz

Related questions

2 answers 179 views
2 answers 167 views
1 answer 152 views
2 answers 128 views
1 answer 129 views
1 answer 134 views
1 answer 169 views
169 views asked Jan 21, 2021 by avibootz
...