Basically I am trying to render a simple image in an ASP.NET handler:
public void ProcessRequest (HttpContext context) { Bitmap image = new Bitmap(16, 16
Ok I used a wrapper for Stream (implements Stream and passes calls to an underlying stream) to determine that Image.Save() calls Position and Length properties without checking CanSeek which returns false. It also tries to set Position to 0.
So it seems an intermediate buffer is required.