User1088674799 posted
The code as below is OK at window server, but it throws error at linux server (mono + apache).
System.Drawing.Image imgPhoto = System.Drawing.Image.FromStream(httpPostedFile.InputStream);
the error message as below:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000]
at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean keepAlive) [0x00000]
at System.Drawing.Image.FromStream (System.IO.Stream stream) [0x00000]
at CE.Platform.BLL.File.File.UploadImageByFile (Int32 thumbId, System.String fileName, FileTypes fileType, System.Web.HttpPostedFile httpPostedFile, CE.Platform.UploadErrs& uploadErr, System.Int32& fileSize) [0x00000]
at CE.Platform.UI.Global.UploadImage.HttpPostBack () [0x00000]
at CE.Platform.UI.Global.UploadImage.Page_Load (System.Object sender, System.EventArgs e) [0x00000]
......