public Drawable icon; \\\\ Some value in this field
I am creating a database in SQLite Manager. I want to store icon
into the database
I made few changes in above answer to get byte array imageview
ImageView iv = (ImageView) findViewById(R.id.splashImageView);
iv.setDrawingCacheEnabled(true);
Bitmap bitmap = iv.getDrawingCache();
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);
byte[] bitmapdata = stream.toByteArray();