Re: How can I insert the image as a blob in the table

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How can I insert the image as a blob in the table
Date: 2021-04-11 23:57:50
Message-ID: CAKFQuwY7kAkQCtsRezSma_-QCQO7jHQk1dy9-79OTHuEXRs6-w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sunday, April 11, 2021, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Hi, David,
>
>
> On Sun, Apr 11, 2021 at 6:24 PM David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)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?

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-04-12 00:02:06 Re: How can I insert the image as a blob in the table
Previous Message Igor Korot 2021-04-11 23:49:11 Re: How can I insert the image as a blob in the table