Hello,
I would like to know if it's possible with the Image Blazor component to load the image from a MemoryStream. My images are not in a folder of the webserver. but I get them using FTP.
with this Code I load the file into a memory stream:
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
using (System.IO.MemoryStream stream = new MemoryStream())
{ response.GetResponseStream().CopyTo(stream);
Image1.ImageUrl = "data:image/jpg;base64," + Convert.ToBase64String(stream.ToArray(), 0, stream.ToArray().Length);
}
is it possible to load the Image using the memorystream ?
thank you .