title: Illegal base64 data at input byte 4 when using base64.StdEncoding.DecodeString(str)
body: <p>I am getting: error: <code>illegal base64 data at input byte 4</code></p>
  
  <p>When passing in Base64Image into <code>base64.StdEncoding.DecodeString(str)</code>:</p>
  
  <pre><code>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYA... 
  </code></pre>
  
  <p>Let me know if you need the full base64, I have just pasted in the first part as it looks like the problem is within 4 byte?</p>
  
  <pre><code>data, errBase := base64.StdEncoding.DecodeString(Base64Image)
  if errBase != nil {
      fmt.Println("error:", errBase)
      return false
  }
  </code></pre>
  
  <p>Do you know why?</p>