protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["image"] != null) { string imagestring = Request.QueryString["image"]; //LoadImage(imagestring); var c = HttpContext.Current; string imagepar = c.Request["image"]; var base64 = c.Request["image"]; LoadImage(base64); } } public void LoadImage(string img) { byte[] bytes = Convert.FromBase64String(img.Replace(' ', '+')); Random Ran = new Random(); string AddToName = DateTime.Now.Day.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Year.ToString() + Ran.Next(199999); try { System.IO.File.WriteAllBytes(@"F:\940Attached\img" + AddToName + ".jpg", bytes); } catch (Exception ee) { Response.Write(ee.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)