title: Connection string in App.config changes when an Image is browsed
body: <p>Below is the connection string inside app.config file.Notice the specified path in datasource.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;connectionStrings&gt;
    &lt;add name="ConnString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data  Source=..\..\Database\ProductsDatabase.accdb;Persist Security Info=False;" providerName="System.Data.SqlClient"/&gt;
      &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The application has an image control inside a button control with a MouseDoubleclick event.</p>
  
  <pre><code>                        &lt;Button Name="m_oBtnProductImage" Grid.Column="0"  Height="60" Width="60" Background="LightGray" Style="{x:Null}" MouseDoubleClick="m_oBtnProductImage_MouseDoubleClick"&gt;
                                  &lt;Image Tag="Image" Name="m_oImage" Stretch="Fill" Source="{Binding SelectedProductEn.ProductImage}"&gt;&lt;/Image&gt;
                          &lt;/Button&gt;
  </code></pre>
  
  <p></p>
  
  <p>The MouseDoubleclick event handler has functionality to browse and upload a new image and than update the same in database. </p>
  
  <pre><code>private void m_oBtnProductImage_MouseDoubleClick(object sender, RoutedEventArgs e)
      {
          Bitmap oBitmapImage = null;
          OpenFileDialog oBrowseImageFile = new OpenFileDialog();
          oBrowseImageFile.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";
          if (oBrowseImageFile.ShowDialog() == true)
          {
              System.Windows.Controls.Image oPictureBox = ((Button)sender).FindName("m_oImage") as System.Windows.Controls.Image;
              string sImagePath = oBrowseImageFile.FileName;
              oBitmapImage = new Bitmap(sImagePath);
              ((CMainUIViewModel)this.DataContext).SelectedProductEn.ProductImage = (byte[])TypeDescriptor.GetConverter(oBitmapImage).ConvertTo(oBitmapImage, typeof(byte[]));
              ((CMainUIViewModel)this.DataContext).UpdateModifiedProduct(((CMainUIViewModel)this.DataContext).SelectedProductEn);
          }
      }
  </code></pre>
  
  <p><strong>When an image is browsed from application's UI,the path specified in the datasource changes to path of the browsed image file,thereby throwing an exception for not finding the database.</strong></p>
  
  <p>Suggestions needed to make appropriate changes.</p>