Re: How can I insert the image as a blob in the table - Mailing list pgsql-general

From David G. Johnston
Subject Re: How can I insert the image as a blob in the table
Date
Msg-id CAKFQuwa4n58D_RDyzWhiMMgYAQZ3DA=5yDU+b6WZmODeF_P4eA@mail.gmail.com
Whole thread Raw
In response to Re: How can I insert the image as a blob in the table  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
On Sunday, April 11, 2021, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Sunday, April 11, 2021, Igor Korot <ikorot01@gmail.com> wrote:
Hi, David,


On Sun, Apr 11, 2021 at 6:24 PM David G. Johnston
<david.g.johnston@gmail.com> wrote:

> If you can decide on what client interface you want to use there should be existing resources on the web walking through how to do this using that client interface.

Something like this:

INSERT INTO images(image) VALES( loadfile( /home/igor/my_image) );

Looking to run it from gAdmin in the Terminal.

As SQL is executed on the server there is the major issue of the server being unable to resolve /home on the client machine.  But maybe pgAdmin has its own way to deal with this.  Have you read its documentation?


Or:


David J.

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: How can I insert the image as a blob in the table
Next
From: Igor Korot
Date:
Subject: Re: How can I insert the image as a blob in the table