I need to convert an image into different format and without saving that file, I need to download that file using Memorystream.
I got this code but not sure how to download it after writing into memory stream
Could you please help with the code?
I got this code but not sure how to download it after writing into memory stream
Could you please help with the code?
var lowResolution = new MagickImage(image) { Quality = 100, Format = "png", BackgroundColor = new MagickColor("#FFF") };
using (MemoryStream memStream = new MemoryStream())
{
lowResolution.Write(memStream);
}