TRACY -- A 24-year-old man will spend the next five years behind bars after Walnut Creek police discovered he was sharing child pornography on the Internet.

On Tuesday, U.S. District Judge Lawrence K. Karlton sentenced Daniel James Harden of Tracy to five years in prison.

According to court documents, in March 2011, detectives with the Walnut Creek Police Department who were working online began investigating Harden, who was then living in Antioch, on suspicion he was using his computer to offer files of child pornography via the Internet.

Harden later moved to Tracy.

In May 2011, Sacramento police also discovered that Harden was sharing child pornography files on his computer through an Internet file-sharing service. Through a search warrant, agents from Sacramento's Internet Crimes Against Children Task Force found that Harden's computer and an external hard drive contained child pornography, including some from a Russian photo-sharing site.

The Sacramento task force investigates online child exploitation crimes, including child pornography, enticement and sex trafficking. The Walnut Creek Police Department assisted in the investigation.

Contact Katie Nelson at 925-945-4780 or follow her at Twitter.com/katienelson210.