you should use .GetString on the encoding to convert a byte array to a string, eg:
VB Code:
  1. [COLOR=blue]string[/COLOR] s = System.Text.Encoding.ASCII.GetString(byData);
  2.  
  3. [COLOR=blue]return[/COLOR] s