Infrared studies of a sample of 3C radio galaxies