title: Check if the image resource is null
body: <p>I Working on Windows Phone 8 application.</p>
  
  <pre><code>string Image = "/MyData/" + myObject.ImageName + "big.png";
  BitmapImage bmp = new BitmapImage(new Uri(Image , UriKind.Relative));
  
                  MyImage.Source = bmp;
  </code></pre>
  
  <p>I have a image in the folder MyData/, i have 2 sets of images like <code>&lt;imagename&gt;big.png,&lt;imagename&gt;small.png.</code></p>
  
  <p>So here what is happening is i want to check if <code>&lt;imagename&gt;big.png</code> exists in the location or not, if not pick <code>&lt;imagename&gt;small.png.</code></p>
  
  <p>How to do it ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I solved it myself, here is how.</p>
  
  <pre><code>File.Exists("path to file") here path should be `folderName/filenames` and not `/folderName/filenames`
  </code></pre>
  
  <p>Thanks for everyone who helped me.</p>