By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,819 Members | 1,173 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,819 IT Pros & Developers. It's quick & easy.

I need help converting a ByteArray to char

P: 1
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
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
[14]

should be

[i]
Sep 29 '06 #2

Post your reply

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