X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 65498DB924 for ; Wed, 16 Nov 2005 12:33:44 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31469-02 for ; Wed, 16 Nov 2005 16:33:42 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 3FB51DB878 for ; Wed, 16 Nov 2005 12:33:40 -0400 (AST) Received: (qmail 8675 invoked from network); 16 Nov 2005 16:36:22 -0000 Received: from unknown (HELO ?127.0.0.1?) (63.111.27.212) by mail63.csoft.net with SMTP; 16 Nov 2005 16:36:22 -0000 Message-ID: <437B5F85.2040509@ejurka.com> Date: Wed, 16 Nov 2005 08:34:13 -0800 From: Kris Jurka User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20051011 Debian/1.7.12-1 X-Accept-Language: en MIME-Version: 1.0 To: bhanu reddy CC: pgsql-jdbc@postgresql.org Subject: Re: Problem with storing Images in PostgreSQL References: <20051116114302.32913.qmail@web30103.mail.mud.yahoo.com> In-Reply-To: <20051116114302.32913.qmail@web30103.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/108 X-Sequence-Number: 14206 bhanu reddy wrote: > > I am Bhanu and got ur id in forums. Can you please help me in solving > problem that I am facing with storing images? > I am using PostgreSQL 8.0.3 and created a table like this: > Please send postgresql jdbc help requests to the pgsql-jdbc@postgresql.org mailing list, not any individual directly. http://jdbc.postgresql.org/lists.html#general > java.sql.SQLException: ERROR: type "lo" does not exist > at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) > at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) > at sun.jdbc.odbc.JdbcOdbc.SQLParamData(JdbcOdbc.java:4738) > at > sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:225) > at > sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136) > at com.coalition.jms.ObjectInDatabase.main(ObjectInDatabase.java:57) > This shows you are not using the postgresql JDBC driver at all, but instead Sun's JDBC->ODBC bridge and the ODBC driver. Please review your connection setup code and ensure you are setting up a JDBC connection. http://jdbc.postgresql.org/documentation/80/index.html Kris Jurka