Received: from webgate.se (IDENT:root@[212.247.50.93]) by hub.org (8.9.3/8.9.3) with ESMTP id DAA30365 for ; Fri, 8 Oct 1999 03:49:54 -0400 (EDT) (envelope-from johan@webgate.se) From: johan@webgate.se Received: from pc4 ([212.247.50.65]) by webgate.se (8.9.3/8.9.3) with SMTP id JAA13186 for ; Fri, 8 Oct 1999 09:45:31 +0200 Message-Id: <199910080745.JAA13186@webgate.se> To: pgsql-interfaces@hub.org Date: Fri, 8 Oct 1999 09:49:04 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Subject: Largeobjects and JDBC Priority: normal X-mailer: Pegasus Mail for Win32 (v3.01d) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from Quoted-printable to 8bit by hub.org id DAA30615 Hi I found docs on how to use largeobjects in java but I can't seem to get it working. I've problem with the following code (basically the code I found on the Internet. try { ps = con.prepareStatement("insert into images values (?,?)"); ps.setString(1,fil.getName()); ps.setBinaryStream(2,fis,(int) fil.length()); ps.executeUpdate(); ps.close(); } catch (SQLException sqle) {System.out.println("SQL: " + sqle.getMessage()); } This code prints the following SQLException SQL: This method is not yet implemented. Im using the latest JDBC-driver (I think, I compiled it from postgresql-6.5.2 source). Does anyone out there have a clue on what I'm doing wrong? Thanx .johan ________________________________________________________________ Johan Warman Norling Education AB Anders Karlssonsgata 7 417 55 Göteborg Tel: 031-223159 Fax: 031-7792847 e-post: johan@webgate.se ________________________________________________________________ The mouse has been moved, please restart your MS Windows for changes to take effect.