Postgres photo retrieving

Retrieving a photo from postgres and saving it locally