Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 957559F37F1 for ; Tue, 22 Nov 2011 16:21:25 -0400 (AST) Received: from out2.smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RSwqK-00015c-U0 for pgsql-jdbc@postgresql.org; Tue, 22 Nov 2011 20:21:25 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 5007720C2F for ; Tue, 22 Nov 2011 15:21:12 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 22 Nov 2011 15:21:12 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=5LWRtNyFlS3fAprUzyWV9g YBdd4=; b=cHg2iPpEnkeoFvMzLeY9f6vxaH2ll/FRT/CZzdrRcjgohFajIehtbi sEJpXl8zX0RyX3Pz9xQMa5hM9BtWM7cCQV7HLjX0uCWHoWnIftr8pkfi7bcxDQf6 DgeXMBCtdcIM/mNttQBqzxX5qj+CU2cWjKWq8+V+6kfsgiOlN8XLA= X-Sasl-enc: zfZXHc7KkWFhzhKUhMzGkBy5ZNMIFbCQxdYLvMXySMrR 1321993272 Received: from [10.153.98.62] (unknown [162.119.232.100]) by mail.messagingengine.com (Postfix) with ESMTPSA id E73608E00B0 for ; Tue, 22 Nov 2011 15:21:11 -0500 (EST) Message-ID: <4ECC043E.9070807@parallelsw.com> Date: Tue, 22 Nov 2011 13:21:18 -0700 From: chris humphrey User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: bytea problem References: <1321983450992-5014176.post@n5.nabble.com> <4ECBFF53.9020303@parallelsw.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 201111/74 X-Sequence-Number: 22409 I looked at the types of ways to store the data, and ensuring it was hex, I could see the '\x' at the beginning of the string... Once I matched the driver with the db all was happy. May want to update the jdbc driver to know what version of db it is talking to and either make the code compatable between the versions, or reject the connection if it is the wrong (incompatable) version.... Once things started working for me, I got lazy and stopped thinking about the problem.... On 11/22/2011 1:15 PM, Maciek Sakrejda wrote: >> I read a posting that the bytea datatype was refactored in version 9, and >> one indication was that twice as many bytes came out as went in... > I think the change in this default is what Chris is referring to: > > http://www.postgresql.org/docs/9.0/static/runtime-config-client.html#GUC-BYTEA-OUTPUT > > This certainly could affect what you're doing. > --- > Maciek Sakrejda | System Architect | Truviso > > 1065 E. Hillsdale Blvd., Suite 215 > Foster City, CA 94404 > (650) 242-3500 Main > www.truviso.com >