Glad you got things figured out. Just to clarify a point…
Absolutely true.
Actually, it’s not a base64-encoded string. It’s a data URL, the latter part of which is a base64-encoded string.
There are a few related forums posts. Just search for “data URL” and/or file upload.
Glad you got it working!