Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Donald DUCK : YOU ARE FIRED!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...