Re: Displaying/Pulling Images using JDBC ...

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "The Hermit Hacker" <scrappy(at)hub(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-jdbc(at)postgresql(dot)org>, <peter(at)retep(dot)org(dot)uk>
Subject: Re: Displaying/Pulling Images using JDBC ...
Date: 2001-05-12 19:27:41
Message-ID: 027201c0db19$9d3845b0$0401a8c0@INSPIRON
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Sorry for the last post.. slip of the finger

Looking at the code; the work is done by PG_Stream, which reads from a
BufferedInputStream into an array until it is done.

I don't really see where it would run into problems.

Can you send me one of the troublesome images.

--dc--
----- Original Message -----
From: "The Hermit Hacker" <scrappy(at)hub(dot)org>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-jdbc(at)postgresql(dot)org>; <peter(at)retep(dot)org(dot)uk>
Sent: Saturday, May 12, 2001 2:55 PM
Subject: Re: [JDBC] Displaying/Pulling Images using JDBC ...

> On Sat, 12 May 2001, Tom Lane wrote:
>
> > The Hermit Hacker <scrappy(at)hub(dot)org> writes:
> > > Now, my thought on this is that it *sounds* like the JDBC is
> > > hitting some sort of control character is the stream that tells it to
stop
> > > sending the image ... is this possible? Some binary character that
needs
> > > to somehow be trapped?
> >
> > Embedded nulls would be the likely cause of trouble.
> >
> > If you're seeing OIDs in the database then the actual storage is
> > presumably in large objects. lo_read and friends are null-safe as far
> > as I know; probably the problem is somewhere inside the JDBC driver.
>
> that's kinda what I'm figuring too ... the question is where, and is there
> a suitable work around ;(
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-05-12 20:45:44 Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....
Previous Message Dave Cramer 2001-05-12 19:26:35 Re: Displaying/Pulling Images using JDBC ...