buffer to base64

i already try it but when i send it to and api it only show a blank file