Can't store image from SQLite to ImageView

i have this annoying problem.Im trying to store image from drawable folder to database then retrieve it and set it in ImageView, but when i try to store it in the ImageView and run it its not changed from the default image that i put in first place, the ImageView is gone. Here is the code for the activity where the ImageView is and the code for the DB handler. MainActivity

    protected void onCreate(Bundle savedInstanceState)  {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);
    ImageView img = (ImageView) findViewById(R.id.maintestImage);
    images();
    img.setImageBitmap(dbHandler.getImageDiet());



    initNewProf();
    initExercises();
}
public void images(){ //get the image from the drawable and store it in the base
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Bitmap bitmap = ((BitmapDrawable)getResources().getDrawable(R.drawable.abs)).getBitmap();

    bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos);
    byte[] photo = baos.toByteArray();
        dbHandler.saveDiet(photo);
}` DB handler
 public Bitmap getImageDiet(){ //retrive the image from the base
    SQLiteDatabase db = getReadableDatabase();
    Cursor c =  db.rawQuery("SELECT imagedata FROM "+ TABLE_DIET, null);
    byte[] photo = hexStringToByteArray("e04fd020ea3a6910a2d808002b30309d");
    while(c.moveToNext())
    {
          photo=c.getBlob(3);
    }
    ByteArrayInputStream imageStream = new ByteArrayInputStream(photo);
    Bitmap theImage = BitmapFactory.decodeStream(imageStream);
    imgView.setImageBitmap(theImage);

}