title: Save rotate image onto server
body: <p>I want to save rotate image onto the server
  I found some solution but its not working..
  <strong>UPDATE</strong></p>
  
  <p>Image path is in xml..
  here is the code:</p>
  
  <pre><code>public Boolean saveRotateImg(string path) 
  {
      string new_path="/Job_Files/"+Job_ID+"/"+GroupName+"/Images/"+path;
      using (Image image = Image.FromFile(new_path)) 
      {
          //rotate the picture by 90 degrees and re-save the picture as a Jpeg
          image.RotateFlip(RotateFlipType.Rotate90FlipNone);
          System.IO.File.Delete(path);
          image.Save(output, System.Drawing.Imaging.ImageFormat.Jpeg);
          image.Dispose();
      }
  }
  </code></pre>
  
  <p>Can anyone suggest how to do that or any other way for that..</p>