title: Send a picture from an app to text message
body: <p>I have created an app that lets you take a picture and send it through a text message in windows phone, but the image doesn't show up in the message instead it says the name of the image control. No picture is there.</p>
  
  <p>this is my code:</p>
  
  <pre><code>    void cameraCaptureTask_Completed(object sender, PhotoResult e)
      {
          if (e.TaskResult == TaskResult.OK)
          {
              System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media.Imaging.BitmapImage();
              bmp.SetSource(e.ChosenPhoto);
              myImage.Source = bmp;
  
          }
      }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    private void button1_Click(object sender, RoutedEventArgs e)
      {
          SmsComposeTask smsComposeTask = new SmsComposeTask();
          smsComposeTask.Body = myImage.Source.ToString();
          smsComposeTask.Show();
      }
  </code></pre>
  
  <p>myImage is the image control that holds the images taken</p>
  
  <p>I think there is some way I have to convert it, but I can't figure it out.</p>