title: How to copy the selected image from picture library to the images folder dynamically in the application?
body: <p>I am new to the windows phone 7 application development. I am accessing the picture library by using the PhotoChooserTask class. After selecting one of the picture from picture library I want to add that image (.jpg file) from picture library to the images folder of my application. How to do this ? I am using the following code </p>
  
  <pre><code>public partial class MainPage : PhoneApplicationPage
      {
  
          PhotoChooserTask photoChooserTask; 
          // Constructor
          public MainPage()
          {
              InitializeComponent();
              photoChooserTask = new PhotoChooserTask();
              photoChooserTask.Completed += new EventHandler&lt;PhotoResult&gt;(photoChooserTask_Completed); 
           }
  
          private void button1_Click(object sender, RoutedEventArgs e)
          {
              photoChooserTask.Show();            
          }
  
          void photoChooserTask_Completed(object sender, PhotoResult e)
          {
              if (e.TaskResult == TaskResult.OK)
              {
                  BitmapImage bmp = new BitmapImage();
                  bmp.SetSource(e.ChosenPhoto);
  
              }
          } 
      }
  </code></pre>
  
  <p>I want to add the the selected image dynamically to images folder of my application. how to do this? Can you please provide me any code or link through which I can resolve the above issue ?</p>