This is what I found online.
FileStream fs = new FileStream(FileName,FileMode.Open,FileAccess.Read);
Stream stream = fs;
stream.Seek(-128,SeekOrigin.End);
//stream.Seek(40,SeekOrigin.Begin);
const int seekPos = 128;
int rl = 0;
byte[] Info = new byte[seekPos];
rl = stream.Read(Info,0,seekPos);
fs.Close();
stream.Close();
return Info;
Read the last 128 bytes of the song file. Some songs can display the TAG logo correctly, but some are garbled.
I would like to ask if the songs have the same bytes that can be used to determine that they are song files and do not contain other content.
Welcome to discuss!! Welcome to discuss!!!