Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tW0kO-00DPr0-5e for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2025 22:11:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tW0kN-009Iev-Ai for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2025 22:11:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tW0kL-009Iem-Rw for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2025 22:11:22 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tW0kG-000nuY-00 for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2025 22:11:21 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id D3D992540198; Thu, 9 Jan 2025 17:11:13 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 09 Jan 2025 17:11:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1736460673; x=1736547073; bh=1enSf4n9IjPORLKNJATK/1gN+18hYrhtHbL7DJznSro=; b= pOIAypmAmIAyazzzjMF8g6gScwwECQhwRUAiFxXMiCL/tT7dKqTkNoRDdHEJ7Ifu Z7HmcpRoM8H/eiqwFCZVSgwbdT6Sc2S7MPcB0WBBGjRmPXo/VdNzbDjVNq5UDlg6 3aGeJsYXXEdy3hjt9WiLAXwdOY5f/K3336MziGPZy8xLSL5TgmKO+Ndz1AoT3Zbk IGhrkW725UDmjKRPKpAFSYNfkYFvjs6HJQq1OqX8zDmLtX10Am2VNqZXE3nHt00M Vne74LcxtzGVO83QukqWbwaWSeDDOfKgWvk3TzVQKA+B2bsJOBO1CMhxyysCX+NG BkAF+ZjhGfInidjt5DyDKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736460673; x=1736547073; bh=1 enSf4n9IjPORLKNJATK/1gN+18hYrhtHbL7DJznSro=; b=eX9lGT/q2qgY3H3Ks qoB/1ievA/PVpNGUyefrvTVilMqQZIBD+BfZYvGN6VTLipFWEOkO+MYmYaSZjeBD yQ74lEVbcxf6WYl78N/EzhWeGo36QR9Ss+KJLbSy695unkFNmtfhFjdS8JFY7khL X/1+KRgUq6vtX7O8RfoeA0lWBqTjeRBFAbYVgQ99myzXnH3Pfw2+HQHYe9uZnJ4W 3yxk/1/dJUaq38yoXy3TgxntBtaKEutsK/rSrPhFwKVGalFYrmDfPkqPewAy/mH3 YRD4ze4BVSNc0CUNh6pdjiZO2xgBHmNPk7fIs6JNDCKrMbmmaCg2WzzLbnPVNBXA 2eS/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegiedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleegveekkeekueeigfdt veeileeuhfefudefteekjeffkeejueejheegheegkedtnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhrghrthhm rghniedthhhomhgvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnh gvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Jan 2025 17:11:13 -0500 (EST) Message-ID: Date: Thu, 9 Jan 2025 14:11:10 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Display Bytea field To: Andy Hartman , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/9/25 12:17, Andy Hartman wrote: > How thru a simple query can I make sure data matches and I can display it What you are facing: 1) Bytea stores binary strings in the formats specified here: https://www.postgresql.org/docs/current/datatype-binary.html 2) The database has no 'knowledge' of what those binary strings represent. They could be an image, a PDF, a spreadsheet file, etc. 3) To achieve what you want you need some sort of client code that can take the binary strings and convert them to the correct output. Then you can match and display. > > On Thu, Jan 9, 2025 at 3:16 PM Andy Hartman > wrote: > > I have migrated over a Table from Mssql that had an Image column I > now have it in Postgres > -- Adrian Klaver adrian.klaver@aklaver.com