public void ProcessRequest(HttpContext context) { string Path = context.Request.Form["Path"]; int width = int.Parse(Convert.ToString(context.Request.Form["Width"])); int height = int.Parse(Convert.ToString(context.Request.Form["Height"])); //Create Request to get Image stream HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Path); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream receiveStream = response.GetResponseStream(); Image theImage = System.Drawing.Image.FromStream(receiveStream); context.Response.ContentType = "image/jpeg"; theImage.RotateFlip(RotateFlipType.Rotate90FlipXY); theImage.Save(context.Response.OutputStream, ImageFormat.Jpeg); theImage.Dispose(); context.Response.ContentType = "text/plain"; context.Response.Charset = ""; context.Response.Clear(); context.Response.Write(Path); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)