BAGHDAD, Iraq (CNN) -- Two U.S. soldiers were charged with misconduct for taking and distributing video and photographs of female soldiers showering, the Army said Monday.

The Army charged Sgt. Gilbert Parker and Spc. Matthew Delia on July 3 and July 7, respectively, according to a news release.

The alleged misconduct happened during pre-deployment training at Fort Dix, New Jersey, in the fall.

Both soldiers are National Guardsmen serving with the 266th Military Police Company, 8th Military Police Brigade in Basra, Iraq.

Parker is alleged to have filmed and photographed females in his unit while they showered at Fort Dix, during mobilization training, the statement said. He also distributed the material.

He is charged with committing an indecent act, violating a general order, conspiracy, obstructing justice and distributing pornography.

Delia was charged with conspiring with and assisting Parker, as well as distributing the video and photographs, according to the press release.

If convicted, both men would face imprisonment, demotion and dishonorable discharge.

All About The Army National Guard • Fort Dix