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

media
javascript

#1

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?


#2

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