Garfield Ebbs, formerly of Fairfield Green in Farranree in the city appeared at Cork Circuit Criminal Court today.
Ebbs pleaded guilty to five charges of engaging in different types of offensive sexual behaviour.
He entered a guilty plea on the charge of engaging in sexual activity with a child under the age of 17 on the south side of the city between September 2018 and May 2019.
He also pleaded guilty to having sex with a prostitute on the 7th of January 2020 at Kilbarry Industrial Estate in the City.
The Court also heard that he admitted to recording men in public toilets at a computer firm in the city, at Cork Airport and at Blackpool Shopping Centre and storing the videos on his phone.
A victim impact statement written by the teenage victim in the case was read out in court.
The young man said he was still being bullied as a result of what happened and that he was 'ashamed and disgusted' by it.
Judge Sean O'Donnabhain described it as a 'bizzare and upsetting case' and took Ebbs' guilty plea into account before jailing him for three years with the final year suspended.
He also fined him €300 for having sex with a prostitute.