I have a customer table in postgres and I want to insert the images for the customer data. I have images of the customers in a folder. I have named all the images name with their customerid.
Now I want to update customer table with their respective image in photo column which is of byte data type. Even though it's bad idea to store images in a database, my image size is small and I need to do that.
Can anybody please help me?