Android Getting null image data
<p>I am trying to get the image from the camera. It works fine. I can take a photo and show it on the image view. Actually, I want to send this photo to my server after took. To do that, I try to pull the image in <code>onActivityResult</code>. But, when i check the Intent data, it always return null.Even though, the application runs fine and display the image. Why am I getting null for Intent data? Could you please help me?</p>

<p>Here is the code:   </p>

<pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        switch (requestCode) {
        case ACTION_TAKE_PHOTO_B: {
            if (resultCode == RESULT_OK) {
                        Log.e("TAG","data: "+data);
                    display_Photo();            


            //Process the image to send but, data is null   
            }
            break;
        }

    } 
    }
</code></pre>

<p><strong>Log cat:</strong> </p>

<p>data : Null</p>
