An Egg Harbor Township man was sentenced in federal court Tuesday to eight years in prison and 10 years of supervised release for downloading child pornography, U.S. Attorney Craig Carpenito said.