HttpFileCollection hc = HttpContext.Current.Request.Files;
HttpPostedFile hp = hc[0];
string num = UploadFile.PostedFile.FileName;
int i = num.LastIndexOf('.');
string newtype = num.Substring(i);
string newname = DateTime.Now.ToString("yyyyMMddHHmmss") + UploadFile.PostedFile.ContentLength;
b = new System.Drawing.Bitmap(hp.InputStream);