title: get captured image from android app cache and display as string builder In Oracle MAF
body: <p>I'm using Oracle MAF 2.1.0.0.41
  when I take an image using android device, I've seen that the path of this image is:file:/storage/emulated/0/Android/data/com.example.app/142416553.jpg</p>
  
  <p>I tried to access to this image using java bean class:</p>
  
  <pre><code>try {
           Object imageSource = (Object) AdfmfJavaUtilities.evaluateELExpression("#{bindings.Return.inputValue}");
           String path = (String) imageSource;
           path = "***path: " + path; 
          File f = new File(path);
  
           path = path + f.exists() + f.canRead() + f.canWrite() + " "+imageSource.getClass();
           InputStream is = new BufferedInputStream(new FileInputStream(path));
           InputStreamReader rdr = new InputStreamReader(is, "UTF-8");
           StringBuilder contents = new StringBuilder();
           char[] buff = new char[4096];
           int len = rdr.read(buff);
           while (len &gt;= 0) {
               contents.append(buff, 0, len);
           }
           System.out.println("***Output: " + buff.toString());
           image = buff.toString();
       } catch (FileNotFoundException e) {
           image =" ***Error FileNotFoundException: " + e.getMessage();
       } catch (IOException e) {
           image = "***Error IOException: " + e.getMessage();
       } catch (Exception e) {
           image = "***Error Exception: " + e.getMessage();
       }
  </code></pre>
  
  <p>but I faced this Error: No such file or directory
  cannot Read, write and not exist.</p>
  
  <p>can anyone help me! how to read image from cache directory.</p>