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
754
1.2k
89.2k
Captured image by webcam store into perticular sub directory
Oct 27 2020 6:29 AM
i have one project i want to save image captured from vebcam and i want to save it in sub directory date wise. like
Images - 27/10/2020.
then how to do it.
i have code like as below.
if
(!Directory.Exists(Server.MapPath(MainDir)))
{
Directory.CreateDirectory(Server.MapPath(MainDir));
}
if
(!Directory.Exists(Server.MapPath(MainDir + SubDir)))
{
Directory.CreateDirectory(Server.MapPath(MainDir + SubDir));
}
MainDir = SubDir +
"/"
+ Path.GetFileName(vImage.ImageUrl);
vImage.ImageUrl = (Server.MapPath(MainDir + SubDir));
Reply
Answers (
2
)
crud operations using ajax in asp.netMvc Entity framework(code first)
Invoice application