image view convert to Bitmap and bitmap convert to byte[]image image view convert to Bitmap BitmapDrawable bitmapDrawable = ( BitmapDrawable ) imageView .getDrawable(); Bitmap bitmap = bitmapDrawable .getBitmap(); Bitmap convert to a byte array(byte[]image) private byte [] imagaetobyte ( Bitmap bitmap) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); bitmap.compress( Bitmap . CompressFormat . JPEG , 90 , byteArrayOutputStream ); byte [] image = byteArrayOutputStream .toByteArray(); return image ; } byte[] convert to bitmap set in imageview Bitmap bitmap = BitmapFactory . decodeByteArray ( reconizeimage , 0 , reconizeimage . length ); holder. imageview .setImageBitmap( bitmap );