Posted By

Anthony on 06/17/08


Tagged

array String byte convert


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

umang_nine
ddevening
laurenceosx
vali29
khouser
ovuncgursoy


Convert Byte Array to String


 / Published in: C#
 

  1. byte [] dBytes = { 1, 2, 3, 4, 5}
  2. string str;
  3. System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
  4. str = enc.GetString(dBytes);

Report this snippet  

You need to login to post a comment.