Daniel Donovan was taken into custody on Monday at College of the Canyons in Santa Clarita.
Deputies said the boy noticed someone trying to tape him at around 5:15 p.m. Monday in a restroom on campus. The victim ran out of the restroom and reported the incident to campus security, who tracked down Donovan.
When Santa Clarita deputies arrived they found child pornography in Donovan's car parked on campus.
Donovan, a student at the college, was booked at Santa Clarita Valley Sheriff's Station. He was charged with two counts of disorderly conduct in a public restroom and one count of possession of child pornography.
Investigators think there may be other victims.
Anyone with information was urged to contact the Los Angeles County Sheriff's Special Victims Bureau at (877) 710-LASD (877-710-5273).