Hello friends,
I am working on a project in it I want to capture image and save it on server machine. When I run application on localhost it's work but on server site it can't.
Can any one help me...
Thank you
For converting into image I write this code...
void CreatePhoto() { string strPhoto = Request.Form["imageData"]; //Get the image from flash file byte[] photo = Convert.FromBase64String(strPhoto); FileStream fs = new FileStream(Server.MapPath("Images/Webcam.jpg"), FileMode.OpenOrCreate, FileAccess.Write); BinaryWriter br = new BinaryWriter(fs); br.Write(photo); br.Flush(); br.Close(); fs.Close(); }