How do you convert a HttpPostedFileBase to an Image?
I use Image.FromStream to as follows: Image.FromStream(httpPostedFileBase.InputStream, true, true) Note that the returned Image is IDisposable. You’ll need a reference to System.Drawing.dll for this to work, and Image is in the System.Drawing namespace. Resizing the Image I’m not sure what you’re trying to do, but if you happen to be making thumbnails or something similar, … Read more