A substitute teacher has been charged in a child porn investigation.