Frank Schönheit - Sun Microsystems Germany wrote:
Hi Fernand,
I'm sure *Frank* can help with the details of connecting a stream to a
database column ...
Can you help me Frank :-)
in general,
oForm.Columns.getByName( "your_column_name" ).updateBinaryStream( _
oTheStream, nBytesInStream )
should do.
Frank, thanks for the reply,
but:
"oForm.Columns.getByName" is the representation off the data who is in the database, what
means that the .updateBinaryStream on the "Form" triggers the data-update in the
database itself ? and, is this method preferable to the uses of a prepared sqlStatement ?
Which leaves you with
- obtaining the stream (which must be an XInputStream)
I suppose you already have one, created from the URL which you
stored your image to. Yes?
- obtaining the number of bytes in the stream
(who the heck invented this API
its also waths we needs when using a SQLstatement :-)
greetz
Fernand
where you need to specify the size
at caller side? Why not just let the implementation read all the bytes
which are there.)
Given that you have an ... intelligent implementation of the stream,
then oTheStream.Length is what you need to pass as second parameter to
updateBinaryStream.
Ciao
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]