pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Igor Korot <ikorot01@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: How can I insert the image as a blob in the table
Date: Mon, 12 Apr 2021 19:38:09 -0600
Message-ID: <62B80287-A91E-4990-975E-F0BF9336B187@gmail.com> (raw)
In-Reply-To: <CA+FnnTyRK==VtF3ULTOcG5OYHntGmMHE78XoGfTrcjjCuCQrPg@mail.gmail.com>
References: <CA+FnnTx7XUn28bgVOXHUBeBb+Qorkc-eYikqu55bQ9aq2Z4Kbg@mail.gmail.com>
	<CAKFQuwaGT1UecowEuwkG3pWmzP_EJdQP=rAZ7iyaQ40wqpi-ZQ@mail.gmail.com>
	<CA+FnnTy-Liwojw_B-ocFQWif7SWmjoqSwVAOCS29Sd01V9YXWQ@mail.gmail.com>
	<CAKFQuwY7kAkQCtsRezSma_-QCQO7jHQk1dy9-79OTHuEXRs6-w@mail.gmail.com>
	<CA+FnnTxoRhUa-gEaDjsd_MRkptzrDDUo+S2d=Gciuip-gNVSxw@mail.gmail.com>
	<CA+FnnTyRK==VtF3ULTOcG5OYHntGmMHE78XoGfTrcjjCuCQrPg@mail.gmail.com>

>
> On Apr 12, 2021, at 7:29 PM, Igor Korot <ikorot01@gmail.com> wrote:
> 
> Hi, guys,
> 
> On Sun, Apr 11, 2021 at 7:08 PM Igor Korot <ikorot01@gmail.com <mailto:ikorot01@gmail.com>> wrote:
>> 
>> Hi, David,
>> 
>> On Sun, Apr 11, 2021 at 6:57 PM 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?
>> 
>> I don't know - server is running on the same OSX machine as pgAdmin will be.
> 
> So nobody is playing with the images?
> 
> Is it even possible - to insert an image as BLOB into the database
> using a simple
> INSERT INTO query?


Many of us ‘play with images’.  We use tools to write to the database.  I’m currently using java to write millions of records into the database include bytea columns with 50-100K binary data.  What tools do you have at hand?
It’s difficult to get an image into a string like ‘insert into tablename values (<what would go here>)’

view thread (11+ messages)  latest in thread

Message-ID: <62B80287-A91E-4990-975E-F0BF9336B187@gmail.com>
Permalink:  ../62B80287-A91E-4990-975E-F0BF9336B187@gmail.com/
Also on:    postgresql.org/message-id/62B80287-A91E-4990-975E-F0BF9336B187@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, ikorot01@gmail.com, david.g.johnston@gmail.com
  Subject: Re: How can I insert the image as a blob in the table
  In-Reply-To: <62B80287-A91E-4990-975E-F0BF9336B187@gmail.com>
  References: <CA+FnnTx7XUn28bgVOXHUBeBb+Qorkc-eYikqu55bQ9aq2Z4Kbg@mail.gmail.com> <CAKFQuwaGT1UecowEuwkG3pWmzP_EJdQP=rAZ7iyaQ40wqpi-ZQ@mail.gmail.com> <CA+FnnTy-Liwojw_B-ocFQWif7SWmjoqSwVAOCS29Sd01V9YXWQ@mail.gmail.com> <CAKFQuwY7kAkQCtsRezSma_-QCQO7jHQk1dy9-79OTHuEXRs6-w@mail.gmail.com> <CA+FnnTxoRhUa-gEaDjsd_MRkptzrDDUo+S2d=Gciuip-gNVSxw@mail.gmail.com> <CA+FnnTyRK==VtF3ULTOcG5OYHntGmMHE78XoGfTrcjjCuCQrPg@mail.gmail.com> <62B80287-A91E-4990-975E-F0BF9336B187@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox