BANGOR — A Charleston man has been sentenced to 35 years in federal prison for producing and possessing child pornography.

Federal prosecutors say 44-year-old Carey Gonyer was also sentenced Wednesday in U.S. District Court in Bangor to a lifetime of probation upon release.

Gonyer had been convicted last year of three counts of sexual exploitation of a minor and one count of possession of child pornography.

Prosecutors say the victim was 16-year-old boy with whom he worked. Authorities say Gonyer sexually assaulted the boy for months in 2011 before asking for sexually explicit cellphone pictures of the victim.

Gonyer was already a convicted sex offender at the time.