ImageView driverphoto=(ImageView)view.findViewById(R.id.userphoto);
driverphoto.setDrawingCacheEnabled(true);
driverphoto.buildDrawingCache();
Bitmap bitmap = driverphoto.getDrawingCache();
byte buff[] = new byte[125*250];
buff = Bitmap2Bytes(bitmap);
driverphoto.setDrawingCacheEnabled(true);
driverphoto.buildDrawingCache();
Bitmap bitmap = driverphoto.getDrawingCache();
byte buff[] = new byte[125*250];
buff = Bitmap2Bytes(bitmap);