after ReadByte, the position is moved too, so you don't need to move the Position manuall, tryint n = File1.PostedFile.ContentLength;
if (n>10)
  n = 10;byte[] bs = new byte[n];
File1.PostedFile.InputStream.Read(bs,0,n);