title: Cannot use SendTweetWithMediaOptions in windows phone
body: <p>I am using TweetSharp in a Windows Phone project and no matter what I do, I can't post a tweet with media.</p>
  
  <p>I am getting the exception 195: Missing or invalid parameter.</p>
  
  <p>I read that usually this can be a cause of invalid data, like the stream that I provide is invalid.</p>
  
  <p>I have tried other way but nothing works , I get the same exception ... </p>
  
  <p>The sharing code, simplified is like this:</p>
  
  <p>MediaLibrary library = new MediaLibrary();</p>
  
  <pre><code>        var picture = library.Pictures[0];
  
          var options = new SendTweetWithMediaOptions
              {
                  Images = new Dictionary&lt;string, Stream&gt; { { picture.Name, picture.GetImage() } },
                  Status = TweetTextBox.Text,
              };
  
  
          AutentificateTwitterService().SendTweetWithMedia(options, (status, response) =&gt;
                                      _dispatcher.BeginInvoke(() =&gt;
                                          {
                                              DonePosting();
  
                                              if (response.StatusCode == HttpStatusCode.OK)
                                              {
                                                  _lastPostId = status.Id;
                                              }
                                              else
                                              {
                                                  MessageBox.Show(String.Format(
                                                          "There was an error sending image to Twitter{0}{1}",
                                                          Environment.NewLine,
                                                          response.Error));
                                              }
                                         })); 
  </code></pre>
  
  <p>I tried sharing with linqtotwitter and worked but TweetSharp is more appropriate for my project.</p>