title: Save Image into project folder in web application
body: <p>I have a requirement of saving the image into project folder. Which is a web application.
  I am not able to figure out how to find the absolute path of my folder which I want to save the image. When I am trying to create empty folder and get the absolute path of that I am getting eclipse path. </p>
  
  <p>Can anyone please help me in resolving the issue?</p>
  
  <p>Here is some code I am trying to save the image:</p>
  
  <pre><code>public void saveCustomsLabel(byte[] array, Obj1, String str) throws userException {
      byte[] array2 = null;
  
      try {
  
         imageInByte = array;
  
          OutputStream bos = new ByteArrayOutputStream();
          InputStream bis = new ByteArrayInputStream(imageInByte);
          BufferedImage bImageFromConvert = ImageIO.read(bis);
          File path = new File("Templates/Images/Image.bmp")
          ImageIO.write(bImageFromConvert, "bmp", path);
  </code></pre>