I'm sorry, but I know only the basics about DBMs, but I think is not possible to put a image file INSIDE a database. You can put in a database the path of the file... (Maybe I'm wrong...) See ya!
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных