Android - Picture.createFromStream gets stuck
<p>Did anybody succeed using Picture.createfromStream ??<br/>
I use capturePicture () in WebView then write to to file as seen in the snapshot below. <br/>Next step I try to check if it is possible to retrieve the picture just written -  line marked with <em>*</em>. <br/> It gets stuck and the picture is never get retrieved. 
<br/>
Any ideas?</p>

<p>Thanks,
<br/>
Notes: <br/>I checked that the file do exist. I used (Picture) writeToStream() on the picture that I got using capturePicture() . </p>

<pre><code>public boolean streamPicture(Picture p)
    {
        if(_outStream == null)
            return false;
        else {
            p.writeToStream(_outStream); 
            if(fileOutputStream != null ) {
                p.writeToStream(fileOutputStream); //fileOutputStream = new FileOutputStream("/data/picture") ;
                try {
                    fileOutputStream.flush();
                    fileOutputStream.close();
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }

            try {
                Picture p_check = Picture.createFromStream(
                                      new FileInputStream("/data/picture")); //*** gets stuck here 
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return true;
        }
    }
</code></pre>
