Hi,

I'm trying to save an image from a picturebox which contains a live webcam feed using the following line in a button,

pictureBox1.image.Save("data.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)

but when I run this, I keep getting an error saying "Object reference not set to an instance of an object"..how can I can fix this problem??

Thx,