Just use new version, and here you go the simple Main.cpp. They are outdate with every tutorial here, and none of them want to help you. They allways say "ask there don't ask here "...etc.
Make sure there are no line breaks within the base64 string. Extra line breaks can corrupt the data. Some tools might add these when converting the image. new world gold