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.
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 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
--
- Frank Schönheit, Software Engineer [EMAIL PROTECTED] -
- Sun Microsystems http://www.sun.com/staroffice -
- OpenOffice.org Base http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]