FileOutputStream throws java.io.FileNotFoundException for relative path
<p>When using a relative path to access images in my application:</p>

<pre><code>FileOutputStream fos = new FileOutputStream("/images/imag.jpg");
</code></pre>

<p>I get a java.io.FileNotFoundException, but if I provide the whole path its works</p>

<pre><code>FileOutputStream fos = new FileOutputStream(
    "C:/Users/seema/Documents/NetBeansProjects/SpiceCareers/web/images/imag.jpg");
</code></pre>

<p>I need to use relative paths in my project, how can I do this? Thanks.</p>
