microkarl Posted June 2, 2005 Posted June 2, 2005 This is the way I am using to convert byte() into string: Dim chrCode(100) As Byte Dim ascii As Encoding = Encoding.ASCII Dim asciiChars(ascii.GetCharCount(chrCode, 0, chrCode.Length)) As Char ascii.GetChars(chrCode, 0, chrCode.Length, asciiChars, 0) Dim asciiString As New String(asciiChars) It converts the byte() into char(), then into string. But is there anyway that I can convert a byte() into string directly and easier. Quote Donald DUCK : YOU ARE FIRED!!!
IngisKahn Posted June 2, 2005 Posted June 2, 2005 Use ASCIIEncoding.GetString() Quote "Who is John Galt?"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.