how to store captured image by webcam in directory ?
I tried with the following code but the image is not stored and generates error as follows.
below error generate
The path is not of a legal form.
string image = vimage.ImageUrl;
image = vimagesave.Value; // hidden value
var WebClient = new WebClient();
byte[] imgbytes = WebClient.DownloadData(image);
string imgname = "image.jpg";
File.WriteAllBytes(Path.Combine(Server.MapPath(MainDir + SubDir), imgname), imgbytes);