Hi,
This is venkat..
I have an issue when rotate images which are exist in remote system..
I have written the following code for image rotation in handler page..
The below code is not working ..Please help me on this issue as early as possible..
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"]));
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);
}
Thanks,
Venkat.