Ray told the court he had been ''drinking too much that day'', and was high on drugs.
''I also took an ecstasy pill. I did not know what I was doing'', he said.
He tried to explain the child abuse imagery found on his laptop as having belonged to the previous owner of his second-hand laptop.
''I had no idea it was in there,'' he said.
Judge Sandra Juranovic said the court took into consideration that he admitted to the charges and that he was a father-of-two.
However, the court revealed they had confirmation from authorities in New Zealand and the UK that the Briton had already been sentenced on similar charges.
Ray will serve his prison term in Rijeka in western Croatia.