Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: Any example...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 1876 of 2010
Post > Topic >>

Re: Any examples for Postgresql 8.0 using jdbc type 2/3 driver

by books@[EMAIL PROTECTED] (Kris Jurka) Feb 1, 2008 at 03:42 PM

On Thu, 31 Jan 2008, Brent Friedman wrote:

> I made several attempts today to get an example of a blob insert via
jdbc
> working today, but ran into several errors.  I tried both oid and bytea
data
> types, and tried the LargeObject manager/methods. [The bytea type
probably
> won't ultimately work for me - we need to be able to insert blobs of a
few
> megs each.]   We use 8.0 in production, so newer examples with
8.1/8.2/8.3
> specific implementations wouldn't help very much.
>
> So, any ideas where I can find working examples of jdbc/blob operations?
>

http://jdbc.postgresql.org/do***entation/83/binary-data.html

The sample code here using the LargeObjectManager API should work. 
Checking the test suite is also a reasonable place to look for examples. 
See readWrite here:

http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/jdbc/pgjdbc/org/postgresql/test/jdbc3/Jdbc3BlobTest.java?rev=1.6&content-type=text/x-cvsweb-markup

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org
 




 2 Posts in Topic:
Any examples for Postgresql 8.0 using jdbc type 2/3 driver with
ledfut@[EMAIL PROTECTED]   2008-01-31 16:24:46 
Re: Any examples for Postgresql 8.0 using jdbc type 2/3 driver
books@[EMAIL PROTECTED]   2008-02-01 15:42:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 22:29:26 CDT 2008.