Im able to convert an image
into Base64. But now im trying to convert it back and store it in a PictureBox
var pic = Convert.FromBase64String(product.Picture);
using (System.Drawing.Image image = System.Drawing.Image.FromStream(new System.IO.MemoryStream(pic)))
{
//NOT SURE WHAT TO DO HERE
pictureBox1.Image =????;
}
Edit 1;
Firstly Thanks to everyone, i have tried all the solutions below and they all work. But i have multiple images, What if there is no image in Poduct.Picture
?