title: Setting image source to application folder
body: <p>I'm trying to get an image from a certain path, but the path must only be referenced from the application's current folder and not from the <em>Local C:</em> drive. </p>
  
  <p>My reason for this is because the application is going to get published soon and I can't reference the image to the same local location on my current PC, because the application is going to be used on a lot of other PC's and the path would not work on other someone else's computer.</p>
  
  <p>This is the current path that works:</p>
  
  <pre><code>SetDefaultImage(new Binary(File.ReadAllBytes("C:\\Users\\mclaasse\\Desktop\\Haze Update\\Haze\\Haze\\Icons\\user6.jpg")));
  </code></pre>
  
  <p>And this is how I need it to be:</p>
  
  <pre><code>SetDefaultImage(new Binary(File.ReadAllBytes("Haze\\Icons\\user6.jpg")));
  </code></pre>
  
  <p>But i'm getting the error:</p>
  
  <blockquote>
    <p>Could not find a part of the path 'C:\Haze\Icons\user6.jpg'.</p>
  </blockquote>
  
  <p>Is there a simple work around for getting my path to work?</p>