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
86.9k
webcam captured image convert and store in database in binary format
Jan 5 2021 7:16 AM
i have try to save captured image into binary format. The image is captured by webcam and image getting from another page on image control. i want to save this image into binary format in database.
my tried code is below.
but i'm getting below error in FileStream line 02.....
Additional information: Access to the path
'K:\StudentManagment\StudentManagment'
is
denied.
my tried code is below.
string
filepath = Server.MapPath(vImage.ImageUrl);
FileStream fs =
new
FileStream(filepath, FileMode.OpenOrCreate, FileAccess.ReadWrite);
BinaryReader br =
new
BinaryReader(fs);
Byte[] bytes = br.ReadBytes((Int32)fs.Length);
br.Close();
fs.Close();
Reply
Answers (
4
)
Print Crystal Report directly when press save button .
How to convert dataset result to class object