As of now,it seems that PreparedStatement.setBinaryStream is not
supported in PosrgreSQL-jdbc.But I sincerely need method similar to this
The reason is that in my servlet application jpg image is dynamically
displayed by <img
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);
To be sorry,the result is the same:InputStream as parameter not
Please tell me an alternative to setBinaryStream.
Thanks in advance.
pgsql-interfaces by date
|Next:||From: Katsuyuki Tanaka||Date: 2001-02-26 05:06:56|
|Subject: IPC Shared Memory (fwd)|
|Previous:||From: Tatsuo Ishii||Date: 2001-02-26 04:19:33|
|Subject: Re: pgaccess Japanese input capability patch|