Hello,
i receive images from a json result. this images are in a string.
i succeed to transform the json object received into a C# object.
now the c# object has the string that represents the images.
how to get back to the image ?
thank you in advance.
private string CreateBase64Image(byte[] fileBytes)
{
Image streamImage;
using (MemoryStream ms = new MemoryStream(fileBytes))
{
streamImage = ScaleImage(Image.FromStrea
}
using (MemoryStream ms = new MemoryStream())
{
streamImage.Save(ms, System.Drawing.Imaging.Ima
return Convert.ToBase64String(ms.
}
}
And in client side,
$('#image1').attr('src', 'data:image/png;base64,' + imageString);