get image size in bytes
<p>I want to get image size in bytes what should i do..</p>

<p>// this code switch me in gallery where we can select any existing images </p>

<pre><code>Intent i = new Intent(Intent.ACTION_PICK,
                                       android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
                       i.setType("image/*");
                       startActivityForResult(i, 2);
</code></pre>

<p>// this code of snippet return the uri of selected images from gallery but i want to image //size in bytes also from here</p>

<pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
               super.onActivityResult(requestCode, resultCode, data);

               if (requestCode == 2) {// 2 for selectimage
                       // Get the data of the image selected? and upload to server

                       if (resultCode == Activity.RESULT_OK) {
                               ImageURI = data.getData();
                               Log.d("IMAGE PATH",""+ImageURI);}}}
</code></pre>

<p>thanks..</p>
