title: Convert from Base64 to Image, got an error "Parameter not valid"
body: <p>I have a base64 image as SVG tag, I tried it on online converter and it works fine and image appears, but in code, it gets an error here:</p>
  
  <pre><code>image = System.Drawing.Image.FromStream(ms);
  </code></pre>
  
  <p>I don't know why? The base64 is correct!<br>
  My full method is:</p>
  
  <pre><code>public Image ConvertIntoBytes(string EncodedBase)
          {
              System.Drawing.Image image = null;
              try
              {
                  byte[] bytes = Convert.FromBase64String(EncodedBase);
                  using (MemoryStream ms = new MemoryStream(bytes, 0, bytes.Length))
                  {
                      image = System.Drawing.Image.FromStream(ms);
                  }
              }
              catch (Exception ex)
              {
                  string err = ex.Message;
              }
              return image;
          }
  </code></pre>
  
  <p>Note:<br>
  array bytes length: 15919</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The problem is SVG base64, so I tried to install "SVG Rendering" From Nuget.</p>