471,573 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

I need help converting a ByteArray to char

int nBytes = 256;
byte[] ByteArray = new byte[nBytes];
int nBytesRead = inputStream.Read(ByteArray, 0 , nBytes);

recorderID = "";


for (int i = 0; i <= 14; i++)
{
recorderID += char.ToString((char )ByteArray[14]);
}

in the recorderID I only need 14 bytes from the bytearray for the recorderID.
thanks
Sep 29 '06 #1
1 2073
Banfa
9,065 Expert Mod 8TB
[14]

should be

[i]
Sep 29 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Prabhu | last post: by
5 posts views Thread by shivaprasad | last post: by
5 posts views Thread by Chris | last post: by
6 posts views Thread by LCD | last post: by
27 posts views Thread by sam_cit | last post: by
9 posts views Thread by Matt F | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.