Fetching the Orientation of the downloaded image
<p>I have been trying to fetch the image orientation when downloaded from the server.</p>

<p>I have tried it to camera image and it works fine for me, Can anyone give me any idea how to fetch the orientation of the downloaded image .</p>

<p>And here is the code for fetching the orientation of the image when taken from the camera.</p>

<pre><code>rotation = (int) exifOrientationToDegrees(exif
                        .getAttributeInt(ExifInterface.TAG_ORIENTATION,
                                ExifInterface.ORIENTATION_NORMAL));
                 orientation = exif.getAttributeInt( ExifInterface.TAG_ORIENTATION, 1 );
                 Log.i("photoimage", "got orientation-----&gt;" + orientation);
</code></pre>

<p>Thanks in advance</p>
