Character is what you do when no one is watching.

But a stranger was watching New York Police Officer Lawrence DePrimo when he decided to buy a barefoot homeless man a pair of new boots on a cold night earlier this month.

“The two things that really stuck out in my mind that night was just how cold it was and that this was the most polite gentleman I ever met, and I knew I had to help him,” DePrimo said Friday on TODAY.

Unbeknownst to DePrimo, a nearby tourist snapped a picture of the random act of kindness — and the photo quickly went viral.

“I knew what I was looking at,” said Jennifer Foster, who was visiting Times Square from Arizona. The moment reminded her of a similar act by her father, a 32-year veteran of the Phoenix police department, and she quickly grabbed her phone.

“I knew it was remarkable,” she said.

Foster sent the photo to the New York Police Department, which posted the snapshot to its Facebook page and quickly picked up more than 430,000 likes. Mentions of the photo also started trending heavily on Twitter.

On TODAY’s Facebook page, the photo has been liked by more than 70,000 followers

Click here to read more.