Exemplo n.º 1
0
        public PartialViewResult Load(HttpPostedFileBase file)
        {
            if (file != null)
            {
                _imageController = new ImageController();
                //get the bytes from the uploaded file
                byte[] data = _imageController.GetBytesFromFile(file);

                using (IDal dal = new Dal())
                {
                    dal.addImage(data, "");
                }
            }

            return PartialView();
        }