Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert binary data to string

Status
Not open for further replies.

ktucci

Programmer
Apr 23, 2001
146
0
0
US
what is the easiest way to convery binary data to a string in VB.net

thanks in advance

-keith
 
This should do it...

Public Function ConvertBytesToString(vData as Byte()) as String
Dim myEncoding As System.Text.Encoding
myEncoding = System.Text.Encoding.Default

Return myEncoding.GetString(vData)
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top