While Colin was taking pictures with his camera, he sees the Basilisk through his camera screen. This saves his life, as he did not see the Basilisk directly, which would have killed him, but instead merely petrifies him.
The Basilisk also had the power to fry Colin Creevey's camera shots while inside the camera.
From the Story
Discovered in chapter 10, The Rogue Bludger
|“||Colin carries a Muggle camera around with him at all times. He develops the photos in a potion in order to make the subjects move.||”|