@jason_rea, I din’t give much details because I think it’s a problem with Twitter API. Because, the code I’ve works fine in localhost, but doesn’t work when the app is hosted. Everything else works fine, except the image upload 
Am using the following code:
authoVariable.post('media/upload',
{'media': fs.readFileSync(req.files[file].path, { encoding: 'base64' })},
function(error, params, response){
if(error) console.log("media/upload error 1 "+error);
});
am getting error media/upload error 1 Error: Status Code: 400