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
753
1.2k
89.4k
Convert webcam image into binary
Jan 21 2021 8:14 AM
when i capture image using webcam and try to store into binary format in sql server its not working i have tried below code. whats wrong ...?
kindly suggest me right way....
my image control name is
vimage
bold line is generating error "Empty path name is not legal."
my code is below
i have declare
string
_imagepath2 = vimage.imageurl;
public
static
byte
[] ImageToBinary(
string
_imgpath2)
{
FileStream fS =
new
FileStream(_imgpath2, FileMode.Open, FileAccess.Read);
byte
[] b =
new
byte
[fS.Length];
fS.Read(b, 0, (
int
)fS.Length);
fS.Close();
return
b;
}
Error Is
Empty path name is not legal.
Reply
Answers (
11
)
when build project error manifest display why and how to solve issue ?
How to check a List for values