title: Integrating twitter4j and Coldfusion To Post Tweets and Upload Image to Posted Tweet
body: <p>I have installed the twitter4j.jar in ColdFusion and it is working. I can post a tweet using cfscript, no problem.  I can also upload an image and tweet at same time. I just cannot upload an image and post a tweet and have the tweet show the image?</p>
  
  <pre><code> &lt;cfscript&gt;
      configBuilder = createObject("java", "twitter4j.conf.ConfigurationBuilder");
      configBuilder.setOAuthConsumerKey('#consumerKey#');
      configBuilder.setOAuthConsumerSecret('#consumerSecret#');
      configBuilder.setOAuthAccessToken('#accessToken#');
      configBuilder.setOAuthAccessTokenSecret('#accessTokenSecret#');
      config = configBuilder.build();
  
      twitterFactory = createObject("java", "twitter4j.TwitterFactory").init(config);
      twitter = twitterFactory.getInstance();
      //twitterimage=twitter.ImageUploadFactory.getInstance();
  
      screenName = twitter.getScreenName();
      //followers_list= twitter.getfollowerslist();
  
      updateStatus1= twitter.UploadMedia(createObject('java','java.io.File').init('c:\\31CC6E16-B55F-704E-C1A14391632DCFD2_medium.jpg'));      
      updateStatus2 = twitter.updateStatus("Whats Up39");
  
      id = updateStatus2.getId(); // id of the status posted
  &lt;/cfscript&gt; 
  </code></pre>
  
  <p>After running the script it returns </p>
  
  <pre><code>Tweet ID:580354904000192513
  Pic ID:580354903106682880
  </code></pre>
  
  <p>So I know the image is uploading. The tweet is there, but no image. Any ideas on what I am doing wrong?</p>