pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
jdbc 8 blob not implemented?
2+ messages / 2 participants
[nested] [flat]

* jdbc 8 blob not implemented?
@ 2004-09-15 13:16 aditya Kulkarni <adityapk@gmail.com>
  2004-09-15 22:52 ` Re: jdbc 8 blob not implemented? Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 2+ messages in thread

From: aditya Kulkarni @ 2004-09-15 13:16 UTC (permalink / raw)
  To: pgsql-jdbc

 Hi,

 I downloaded the pgjdbc 8.0 driver, and when i tried using the
 getBlob() on a result set, it throws a NotImplemented Exception

 I looked at the code, and it looks like none of the functionality has
 been implemented. Is this a server limitation or such thing, or is it
 work that just needs to be done?

 The real problem is that i can't use the LargeObject API for Blob's,
only bytea. I understand that i can use a getBinaryStream on a result
set, but i want to know what the problem with getBlob is

 Thanks in advance
-- 
Aditya Kulkarni



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: jdbc 8 blob not implemented?
  2004-09-15 13:16 jdbc 8 blob not implemented? aditya Kulkarni <adityapk@gmail.com>
@ 2004-09-15 22:52 ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2004-09-15 22:52 UTC (permalink / raw)
  To: aditya Kulkarni <adityapk@gmail.com>; +Cc: pgsql-jdbc



On Wed, 15 Sep 2004, aditya Kulkarni wrote:

>  Hi,
> 
>  I downloaded the pgjdbc 8.0 driver, and when i tried using the
>  getBlob() on a result set, it throws a NotImplemented Exception

Just calling getBlob gives the exception? I don't see what code path that 
could be coming from, what's the whole stacktrace?

>  I looked at the code, and it looks like none of the functionality has
>  been implemented. Is this a server limitation or such thing, or is it
>  work that just needs to be done?

I believe the reading methods have been implements while the writing 
and positioning methods have not.  The writing methods seem easy to 
implement, but the positioning methods seem like they would require 
server support to be efficient.

>  The real problem is that i can't use the LargeObject API for Blob's,
> only bytea. I understand that i can use a getBinaryStream on a result
> set, but i want to know what the problem with getBlob is

bytea really isn't a LOB type, it doesn't have any real support for 
partial reads, writes, streaming or the normal LOB like things.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-09-15 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-15 13:16 jdbc 8 blob not implemented? aditya Kulkarni <adityapk@gmail.com>
2004-09-15 22:52 ` Kris Jurka <books@ejurka.com>

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