Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lW8w4-0007Sf-IM for pgsql-general@arkaria.postgresql.org; Tue, 13 Apr 2021 02:37:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lW8w3-0007mN-Fh for pgsql-general@arkaria.postgresql.org; Tue, 13 Apr 2021 02:37:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lW8w3-0007mG-4I for pgsql-general@lists.postgresql.org; Tue, 13 Apr 2021 02:37:51 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lW8w0-0008Qi-V6 for pgsql-general@lists.postgresql.org; Tue, 13 Apr 2021 02:37:50 +0000 Received: by mail-pj1-x102d.google.com with SMTP id lr1-20020a17090b4b81b02900ea0a3f38c1so563071pjb.0 for ; Mon, 12 Apr 2021 19:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Lgh6KT92dIT8tFJXrHcROpa0hHMfFZNgO4djVLyw9rQ=; b=De/R3+wbWFyD3Tu/3E8GzollsMxFNZ5Icn2gtpMwwlyTYPWEk1NOe9E+v2YeuPfja7 GtiOaZ4JEUMAbdIi8yBrNrahcSpCZCU1rm/U/ihnanRey+gaZa4dqna7nfQo1vzq5RMK UTowE3ZngO+MzMLMZ5yg/8Ium36OY/FQBUd1IoKN5zSl/QVTol+HHTgMOtDeXsIUi5XZ bYqocvJ/dvUo1pkZMkAnX1gN/03tHQuQZ/WKA9pXL4AOWpGufmAFVYgsWr45CZZqKHEp 2zvNckLfRchIhpazsIcRh+loCJUZek174xso7eGikzodirpRkTsCEKhA4pZfsdBi3KnI W/1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Lgh6KT92dIT8tFJXrHcROpa0hHMfFZNgO4djVLyw9rQ=; b=eU7vrSHfmMq95O4xa7Agqlr5wK++QFmHku5IDnK8HioTCM4u+6YTqqOqww7DhfNVjr ffuIBrqhY9on6C9QibAyg/UM0hgGVFV+w1x6T6uCJ5MbvlfdRUBCJBNzSyFsZPzn8cj9 fhIwdZAs0UxXgMCVM//I+WoM/v7qTHjh+HxQHzqkUnpJEeaHFr6C4RPorJgv++Oou7Ae opkIayLA9L30Rad+ckTGoUmidkrIEcBfRCru+q6OSoVKFz6e8IBGcuQLILIysx1LCFeG L2yhnRhnahX3OLs+01S+/xFnmaC0x3FZSQ7wX7RxxVnYNeXCszkxs1KJlF1n04JVkPV2 FtWQ== X-Gm-Message-State: AOAM5313/gWHz/t/FyfQgAIFYDGb0IZiBkM8VOOE7fbzXp7xWOGSIS9n rwYZ4An4JEF6JJ/4z9JivjM= X-Google-Smtp-Source: ABdhPJw1x0Dcgm93B6oqO5b+JjmnbjQLFqr9yFAX2nSG+tdD2RJt8k+UY14FdG4SqkEq6QIvBoBSww== X-Received: by 2002:a17:902:ff11:b029:eb:2a0b:fe4 with SMTP id f17-20020a170902ff11b02900eb2a0b0fe4mr1068859plj.8.1618281467719; Mon, 12 Apr 2021 19:37:47 -0700 (PDT) Received: from bus-094542.ad.utah.edu ([155.98.131.2]) by smtp.gmail.com with ESMTPSA id f135sm10662626pfa.102.2021.04.12.19.37.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Apr 2021 19:37:47 -0700 (PDT) From: Rob Sargent Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_2BC1B750-F32E-4FB2-A5D0-6754E5035053" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: How can I insert the image as a blob in the table Date: Mon, 12 Apr 2021 20:37:46 -0600 In-Reply-To: Cc: Igor Korot , "David G. Johnston" , "pgsql-generallists.postgresql.org" To: Abdul Qoyyuum References: X-Mailer: Apple Mail (2.3654.60.0.2.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_2BC1B750-F32E-4FB2-A5D0-6754E5035053 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 12, 2021, at 8:31 PM, Abdul Qoyyuum = wrote: >=20 > Have you tried >=20 > insert into table(picture) values(lo_import('D:\image.jpg')); > ? >=20 No, I=E2=80=99m doing some non-standard compression on the way down.= --Apple-Mail=_2BC1B750-F32E-4FB2-A5D0-6754E5035053 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Apr 12, 2021, at 8:31 PM, Abdul Qoyyuum <aqoyyuum@cardaccess.com.au> wrote:

Have you tried

insert =
into =
table(picture) values(=
lo_import('D:\image.jpg'=
));
?

No, I=E2=80=99m doing = some non-standard compression on the way down.= --Apple-Mail=_2BC1B750-F32E-4FB2-A5D0-6754E5035053--