Bitmap bit = BitmapFactory.decodeResource(getBaseContext().getResources(), R.drawable.icon);
    
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    bit.compress(CompressFormat.JPEG , 100 , stream);
    byte[] b = stream.toByteArray();

 

ContentValues row;

row.put("photo", b);

db.insert("test", null, row);

 

이런식으로 저장을 시도 했는데여.. 저장이 안되는거 같아여 ㅠ

 

db.execSQL("CREATE TABLE test ( _id INTEGER PRIMARY KEY AUTOINCREMENT, " +
    " photo BLOB);");

db는 이런식으로 했고요..