pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedAlternative to setBinaryStream
2+ messages / 2 participants
[nested] [flat]
* Alternative to setBinaryStream
@ 2001-02-26 04:35 NSB)Hiroshi Kasamatsu <hkasa@fancy.ocn.ne.jp>
2001-03-01 20:25 ` Re: Alternative to setBinaryStream Peter Mount <peter@retep.org.uk>
0 siblings, 1 reply; 2+ messages in thread
From: NSB)Hiroshi Kasamatsu @ 2001-02-26 04:35 UTC (permalink / raw)
To: pgsql-interfaces
As of now,it seems that PreparedStatement.setBinaryStream is not
supported in PosrgreSQL-jdbc.But I sincerely need method similar to this
stream.
The reason is that in my servlet application jpg image is dynamically
displayed by <img
src=http://www.kasa.com/Image/servlet/ImageServlet?imgname=kasa.jpg;
tag.
Throughout this process,binary stream ,or getBinaryStream is used.
Therefore,image needs to be inserted into database by
PreparedStatement.setBinaryStream in advance.
One suggestions from mailing list is using ByteArrayInputStream:
That is ,ByteArrayInputStream bi=new ByteArrayInputStream(bytes);
ps.setBinaryInputStream(imgoid,bi,bytes.length);
To be sorry,the result is the same:InputStream as parameter not
supported;
Please tell me an alternative to setBinaryStream.
Thanks in advance.
Hiroshi Kasamatsu
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Alternative to setBinaryStream
2001-02-26 04:35 Alternative to setBinaryStream NSB)Hiroshi Kasamatsu <hkasa@fancy.ocn.ne.jp>
@ 2001-03-01 20:25 ` Peter Mount <peter@retep.org.uk>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Mount @ 2001-03-01 20:25 UTC (permalink / raw)
To: NSB)Hiroshi Kasamatsu <hkasa@fancy.ocn.ne.jp>; pgsql-interfaces
At 13:35 26/02/01 +0900, NSB)Hiroshi Kasamatsu wrote:
> As of now,it seems that PreparedStatement.setBinaryStream is not
>supported in PosrgreSQL-jdbc.But I sincerely need method similar to this
>stream.
Streams are supported in 7.1
Peter
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-03-01 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26 04:35 Alternative to setBinaryStream NSB)Hiroshi Kasamatsu <hkasa@fancy.ocn.ne.jp>
2001-03-01 20:25 ` Peter Mount <peter@retep.org.uk>
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