"media type unrecognized" in nodejs's node-twitter-api



I am using https://www.npmjs.com/package/node-twitter-api library in nodejs. The Authentication is successfull but I get “media type unrecognized” error while uploading media(both jpeg/png format) with base64-encoded string.
Can anyone help me out with this?


I think that base64 encoded images are not supported anymore, at least I never was able to successfully upload those.