0
ここに私の画像の幅とサイズのコードは完璧ですが、問題はそれは私にエラー '引数が有効ではありません'がnullを渡すが、null値を渡したい場合はどうすればいいのですか?画像の振る舞いを確認する
HttpPostedFile fil = this.FileUp.PostedFile;
System.Drawing.Image uploadimage = System.Drawing.Image.FromStream(fil.InputStream);
if (uploadimage.Height > 155 || uploadimage.Width > 124)
{
lblErrorMsg.Visible = true;
lblErrorMsg.Text = "<font class='orange'>Height and width not accpetable</font>";
return;
}
あなたの質問は何ですか? – Oded
私の質問は、空のパスを渡したいのですが、選択した画像や任意のドキュメントファイルが必要ない場合は、このコードで許可してください。 – Aties
何から何に何を渡すのですか? –