TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bhavesh Vankar
763
1.1k
87.9k
How to capture image by multiple computer and use
Nov 7 2020 1:13 AM
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"
);
//Convert Base64 Encoded string to Byte Array.
byte
[] imageBytes = Convert.FromBase64String(data.Split(
','
)[1]);
//Save the Byte Array as Image File.
string
filePath = HttpContext.Current.Server.MapPath(
string
.Format(
"~/CapturedImage/{0}.jpg"
, fileName));
File.WriteAllBytes(filePath, imageBytes);
return
true
;
}
Reply
Answers (
2
)
there is names data in my List<string> and now i want to copy this dat
Can someone tell why i am getting this error.