7

SQLiteException Unable to convert BLOB to string when contact have photo. Android

view full story
linux-howto

http://stackoverflow.com – In my code I update contact information including name, address, email, and photo. When contact have no photo all OK. But after assigning a photo for the contact I get android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string on each update operation. My code for adding photo to contact Bitmap bit =getBitmap(); ByteArrayOutputStream streamy = new ByteArrayOutputStream(); bit.compress(CompressFormat.PNG, 0, streamy); byte[] photo = streamy.toByteArray(); ContentValues values = new (HowTos)