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
755
1.2k
89.4k
store image into binary format which is captured by webcam
Dec 21 2020 12:25 PM
how to convert image into binary format and store it into binary format in sql server. image is captured by webcam and retrive from another page on image control. i want to convert into binary and want to store that image into sql server database in binary format.
also need if image control is blank image control should be validate.
below is my code to convert image into binary.
var WebClient =
new
WebClient();
byte
[] imgbytes = WebClient.DownloadData(image);
MemoryStream ms =
new
MemoryStream();
byte
[] imgtobinary =
new
byte
[ms.Length];
ms.Position = 0;
ms.Read(imgtobinary, 0, (
int
)ms.Length);
image control validation code.
if
(!
string
.IsNullOrEmpty(image))
{
}
when first time record saved and press save button again validation occured but record being save continue the validation not working properly.
can anyone help me...?
Reply
Answers (
2
)
convert table to pivot table using linq c#
data saving while validation is occur