below is my code to capture image by webcam using asp.net c#. i want to make application which is using in multiple computer by server in same time capture image by multiple pc. how to make it.. kindly suggest me good code for it.
- [WebMethod()]
- public static bool SaveCapturedImage(string data)
- {
- string fileName = DateTime.Now.ToString("dd-MM-yy");
-
- byte[] imageBytes = Convert.FromBase64String(data.Split(',')[1]);
-
- string filePath = HttpContext.Current.Server.MapPath(string.Format("~/CapturedImage/{0}.jpg", fileName));
- File.WriteAllBytes(filePath, imageBytes);
- return true;
- }