Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haBhh-0001ey-Hs for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2019 04:14:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1haBhe-0002zc-VM for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2019 04:14:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haBhd-0002zV-Ua for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2019 04:14:38 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haBhV-0000yM-Rf for pgsql-general@postgresql.org; Mon, 10 Jun 2019 04:14:37 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DFFCF21B36; Mon, 10 Jun 2019 00:14:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 10 Jun 2019 00:14:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=y cJmoCgTTOm14k9eLP9clXaOCs6DmSAxoIdbP3Vquy4=; b=rkHIrSkqGVXXF2EeA va42v+JvIwVrPehuhPi0AW8ZyAlsqrKCVIoTy2wQA6C2wmOQiONObzt8SkS3KPCu uStlMiidDs9c0DNx39f8qLA/pNpavQqlQ9LPD5n6VCN6AGtxOY2qGVIhclajQ23C vymsiHR0ed8DkjpYCEni7EGXJGfHdrrW6mfF65yM2JB3jNt8G6Jkw4Onf7f+5kSZ Ic9udFcmj433edln+r3BIhPMrDhnDr1kanS+F9YyIfqa2/paw+MxPUTbS9YIeS1A bykCQl8LnTT/zFJg8AinlZ4XrwSWAOljLI3m5j2lgSBVwxA+KOm4jjuaJDlvuOYq QbM5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=ycJmoCgTTOm14k9eLP9clXaOCs6DmSAxoIdbP3Vqu y4=; b=zj16jwH+sBX26Eax5V4P+BGC6elEmQmear+ec/pRhczmXxK535I0AC5uw GbMvzpmN2vSz4b1qzzoYjwV3ZU4mGO3sQrr97tV2DCjH7piYYV2AXnUdI/ukmoPR mA6/0t0fpgKI4u2XMSbowtYxufHwcc05Hk1xETSAhHh2fR2zPOlFpPZQKUyE5UJN MFQQRBIRVMlDoe8Gn3eTl2Ef2NFIODmxvNWMVcTXzl3kSJXSP87M/iCGRKms3yYL QUWBSYYEZxlvkWJKeF6TNjBq+MNt000OCb/atpsdUSFbfWychj7n97pth2g56J1L tFqsLEhG6Ged0G0R7yD4Y+/iHGRnw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehuddgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejuddrvddu vddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id F2193380083; Mon, 10 Jun 2019 00:14:26 -0400 (EDT) Subject: Re: Inserting into the blob To: Igor Korot , pgsql-general References: From: Adrian Klaver Message-ID: <6cbb4f03-7c05-4473-330d-b220b0a9ec7b@aklaver.com> Date: Sun, 9 Jun 2019 21:14:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/9/19 8:28 AM, Igor Korot wrote: > Hi, ALL, > How do I insert the png file (content, not a name) into the BLOB field > in the table i PostgreSQL DB? Are you talking about this data type?: https://www.postgresql.org/docs/11/datatype-binary.html Or this?: https://www.postgresql.org/docs/11/largeobjects.html What client/language are you using? > > Thank you. > > > -- Adrian Klaver adrian.klaver@aklaver.com