Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNoDR-0005qv-0q for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Mar 2014 18:49:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WNoDQ-0000z2-G4 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Mar 2014 18:49:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNoDO-0000xQ-Pt for pgsql-bugs@postgresql.org; Wed, 12 Mar 2014 18:49:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNoDM-0006XY-I5 for pgsql-bugs@postgresql.org; Wed, 12 Mar 2014 18:49:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2CInDVg018160; Wed, 12 Mar 2014 14:49:13 -0400 From: Tom Lane To: Joyce.Kai@honeywell.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9548: jpg error 53 when trying to view jpg stored in blob field In-reply-to: <20140312140511.706.66858@wrigleys.postgresql.org> References: <20140312140511.706.66858@wrigleys.postgresql.org> Comments: In-reply-to Joyce.Kai@honeywell.com message dated "Wed, 12 Mar 2014 14:05:11 -0000" Date: Wed, 12 Mar 2014 14:49:13 -0400 Message-ID: <18159.1394650153@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Joyce.Kai@honeywell.com writes: > I use PostgreSQL in an application written in Delphi. We started with > PostgreSQL 8.1. I store a jpg image in a blob field using Delphi code. We > recently upgraded to 8.3 because 8.1 is no longer supported. However, the > installation for 8.3 frequently fails on Windows 7 64-bit, and PostgreSQL > 8.3 is about to be obsoleted anyway, so we have been telling them to > download and install the latest version when it fails. A few users have > installed 9.3. When they attempt to view the jpg image stored in the > database, they get jpg error 53. You've provided almost no information about what's happening at the database level, but a likely guess is that you're storing the image in a bytea field and there's client-side code that doesn't know about the hex-based bytea output format that was introduced in 9.0. If you don't want to update the client code you can set bytea_output = escape to get the old format. A different line of thought is that the client-side code may be confused about whether to double backslashes in input strings; that would be associated with the standard_conforming_strings setting, which has also changed its default since 8.1. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs