I am getting the “Parameter is not valid.at System.Drawing.Bitmap..ctor(Stream stream)”
in my code.
I am using the Following lines in my code,
System.Drawing.Bitmap image = new System.Drawing.Bitmap(fileUpload1.PostedFile.InputStream);
I don’t find anything wrong in this code.
In some cases,
Bitmaprequires a seekable stream. Try:However. I must also note that this looks like ASP.NET;
System.Drawingis not supported in ASP.NET: see here