将 bitmap.Save(page.Response.OutputStream, ImageFormat.Png);
改为:
MemoryStream MemStream = new MemoryStream(); bitmap.Save(MemStream, ImageFormat.Png); MemStream.WriteTo(page.Response.OutputStream);
Powered by: 博客园 Copyright © 2024 billpeng Powered by .NET 8.0 on Kubernetes