@{ ... HttpPostedFileBase image = Request.Files["image"]; if(image != null) { MemoryStream target = new MemoryStream(); image.InputStream.CopyTo(tar