a generic error occurred in gdi+. while saving an image
<p>Dear Expert i am getting an error while saving an image the code is as follows </p>

<pre><code>  ClsImageManager objImgManager = new ClsImageManager();
  Bitmap ImageBitmap = objImgManager.GetBitmapFromBytes(ImageData);
  Response.ContentType = "image/tiff";
  ImageBitmap.Save(Response.OutputStream, ImageFormat.Tiff);
  ImageBitmap.Dispose();
  Response.End();
</code></pre>

<p>when i used Image.format.jpeg the code is working good but when i changes it to ImageFormat.Tiff then i am getting an error <strong>a generic error occurred in gdi+.</strong></p>
