Code Snippet
  1. public Image Base64ToImage(string base64String)
  2. {
  3.   // Convert Base64 String to byte[]
  4.   byte[] imageBytes = Convert.FromBase64String(base64String);
  5.   MemoryStream ms = new MemoryStream(imageBytes, 0,
  6.     imageBytes.Length);
  7.   // Convert byte[] to Image
  8.   ms.Write(imageBytes, 0, imageBytes.Length);
  9.   Image image = Image.FromStream(ms, true);
  10.   return image;
  11. }
<!>