Anatomy of the result
A Base64 image data URL has the form data:<media-type>;base64,<payload>. For a GIF, the prefix is data:image/gif;base64,. Everything after the comma encodes the original file bytes as ASCII characters. Trailing equals signs are Base64 padding and belong to the payload. The entire string, including the prefix and comma, is the usable URL.