pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: johan@webgate.se
To: pgsql-interfaces@hub.org
Subject: Largeobjects and JDBC
Date: Fri, 8 Oct 1999 09:49:04 +0200
Message-ID: <199910080745.JAA13186@webgate.se> (raw)

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.



Message-ID: <199910080745.JAA13186@webgate.se>
Permalink:  ../199910080745.JAA13186@webgate.se/
Also on:    postgresql.org/message-id/199910080745.JAA13186@webgate.se

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: johan@webgate.se, pgsql-interfaces@hub.org
  Subject: Re: Largeobjects and JDBC
  In-Reply-To: <199910080745.JAA13186@webgate.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox