problem with getting photo content of contacts
<p>I am using below code to  get the photo from my contacts..
but this is throwing exception..</p>

<p>android.database.sqlite.SQLiteException: unknown error: INTEGER data in getBlob_native.</p>

<p>please help  me if I miss something. </p>

<p>int idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID);</p>

<p>byte[] img = cursor.getBlob(idx);</p>

<p>ImageView i = (ImageView)findViewById(R.id.ImageView); </p>

<p>Bitmap b = BitmapFactory.decodeByteArray(img, 0, img.length); </p>
