MVC Stream Picture rotated
<p>I want to use a rotated Image in an MVC Application.
For this purpose i worte an Controller which Returns a rotated Image, but I cant get it working.</p>

<p>This is my Command:</p>

<pre><code>public ActionResult PictureStreamRotate(string filename)
{
    Image image = Image.FromFile(filename);
    image.RotateFlip(RotateFlipType.Rotate90FlipNone);

    MemoryStream stream = new MemoryStream();
    image.Save(stream, ImageFormat.Jpeg);
    return File(stream, "image/jpeg");
}
</code></pre>

<p>The Image which is streamed back is invalid. Dies anyone have any Idea.
The Input Picture is a <code>JPG</code> File.</p>

<p>btw. even if i remove thw line <code>Image.RotateFlip</code> it wont work.</p>