C# convert between Image and Base64string
static void ImageMSDemo(string picPath) { byte[] imageArray = System.IO.File.ReadAllBytes(picPath); string base64ImageRepresentation = Convert.ToBase64String(imageArray); var img = Image.FromStream(new MemoryStream(Convert.FromBase64String(base64ImageRepresentation))); img.Save("newImg.jpg"); }