Re: keeping images in a bytea field on AWS RDS

From: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: keeping images in a bytea field on AWS RDS
Date: 2020-03-31 20:48:41
Message-ID: 5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2020-03-31 at 15:49 -0400, Richard Bernstein wrote:
> I am using postgresql on RDS. I need to upload an image to the table.
> I understand that I need to set the PGDATA directory and place the
> image file in it, before setting the path in the bytea field. But how
> do I set PGDATA if I don't have the ability to set an
> environment variable, and don't have access to the following on an AWS
> controlled installation?

You don't put a file path into a bytea field or do anything with the
database filesystem. You insert the contents of the actual file into the
field using SQL commands.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2020-03-31 20:52:18 Re: keeping images in a bytea field on AWS RDS
Previous Message Christophe Pettus 2020-03-31 19:51:48 Re: keeping images in a bytea field on AWS RDS