A Gambrills man was arrested Wednesday in connection with the distribution of child pornography, police said.

Robert J. Hudson 2nd, 24, of the 1000 block of Christmas Lane has been charged with two counts of distributing pornographic images of children, according to a statement by Maryland State Police.

On Tuesday, an undercover state trooper was surveilling an online file-sharing network "known for distributing child pornography," the statement said.

The trooper engaged in an online chat with another person and they agreed to meet to exchange computer files containing child pornography, police said.

On Wednesday, the trooper met Hudson at a public library in Crofton where Hudson was arrested, according to police.

Police are also conducting an investigation on Hudson's home computer and hard drives, which were obtained during a search of his Gambrills home, the statement said.

Hudson is being held on a $275,000 bond.

steve.kilar@baltsun.com

twitter.com/stevekilar