0👍
✅
Okay solved it! the only thing that I had to add is to actually convert the base64 content to Binary using this:
var data = Buffer.from(b64string, 'base64');
And then sending this data to a commit which worked perfectly!
0👍
Based on this blog post, you might have to add ?raw=true
to the end of the src url. Alternately, I found a hack on a previous SO answer.
Source:stackexchange.com