Hello i want to upload image using desktop application and not the web application. I want to upload at particular time interval say half an hour automatically. How can I do that?
use this code for uploading image on server SqlConnection cn = new SqlConnection("data source=(local);initial catalog=testpic;user id=sa;password=123"); cn.Open(); SqlCommand cmd = new SqlCommand("insert imgtest values(" + textBox1.Text + ",'" + ImageToBase64(pictureBox1.Image, System.Drawing.Imaging.ImageFormat.Png) + "')", cn); SqlDataReader dr = cmd.ExecuteReader(); cn.Close();