'How to add programmatically generated imageviews to room database

How can I add multiple imageviews generated programmatically from linearlayout to room database. I have used byte for it but I can only store one image. I want to store all images in the same row

    
    ImageView imageview = new ImageView(this);

   linear.addView(imageView);  ``` 



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source