what to convert bytes to , so i can read them ( ID3 tag reading)

fguihen

Well-known member
Joined
Nov 10, 2003
Messages
248
Location
Eire
ok. im trying to read ID3 tags from mp3s. i use a file Reader to read in the last 128 bytes from an mp3 file into a byte array. i then check the first 3 bytes of this. if they say "ID3", then the rest of the bytes will be details about the song. i can check if the "ID3" is there, and it goes into a loop for me but when i read the rest of the bytes, all i get is numbers.

eg
string result = "";
for(int i = 0; i <= 127; i++)
{
result = result + byteArray;
}



result will only be equal something like "4124531065432107808949040984098409419".

if i read the data into a char variable, i get the variable = a square ( i dont know which keys produces a square, sorry).
anyway, my question is , when i have a byte array, how do i take it and turn the data in it into a readable string?
 
Back
Top