So on the bright side for you, you don’t need to use the NPM buffer library, because the FileReader api has one of its own. Instead of reader.readAsDataURL, you should use reader.readAsArrayBuffer.
That will give you the buffer directly to use in the request, no conversion necessary