Skip site navigation (1) Skip section navigation (2)

users-lounge/docs/7.1/programmer/jdbc-lo.html - ERROR?

From: Hans-Jürgen Schönig <hs(at)cybertec(dot)at>
To: pgsql-docs(at)postgresql(dot)org
Subject: users-lounge/docs/7.1/programmer/jdbc-lo.html - ERROR?
Date: 2001-06-05 13:09:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
I have copied the code out of the source code but somehow the compiler
fails. There seems to be something wrong with the docs.
I am using PostgreSQL 7.1.2 on RedHat 7.1.

File file = new File("snapshot.bmp");
FileInputStream fis = new FileInputStream(file);
PreparedStatement ps = conn.prepareStatement("INSERT INTO images VALUES
(?, ?)");
ps.setString(1, file.getName());
ps.setBinaryStream(2, fis, file.length());
fis.close(); setBinaryStream(int,,int) in
java.sql.PreparedStatement cannot be applied to
                        ps.setBinaryStream(2, fis, file.length());
1 error


pgsql-docs by date

Next:From: Jean-Francois LevequeDate: 2001-06-06 12:15:15
Subject: [DOC] Looking for foreign key and triggers doc
Previous:From: Bruce MomjianDate: 2001-06-04 20:35:08
Subject: Re: [INTERFACES] libpq sockets on win32

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group