Purpose:
Assess the format, width and height of the image, and then save it in my program.
Problem:
I donβt know how to use the HttpPostedFileBase file , and then send it to Image newImage = Image.FromFile(xxxx); without saving the image in my program.
- Check
- save image in my "App_Data"
[AcceptVerbs(HttpVerbs.Post)] public ActionResult Add(HttpPostedFileBase file) { if (file.ContentLength > 0) { Image newImage = Image.FromFile(xxxx); } return Index(); }
What'sUP
source share