Frank Schönheit - Sun Microsystems Germany wrote:
Hi Fernand,
A related question:
Can you give me some hints to produce a minimal code (maybe no code at
all :-) )to put images out of a database into a writerdoc who is the
base document to run a mailmerge using the beamer(F4)
In general, the database column is able to provide its content as stream
(getBinaryStream, being an XInputStream). Of course you could write this
to a file (though I do not know the API for this). Whether it's possible
to directly put the binary content into a text doc - not sure, perhaps
the css.graphic API has something for it. I suggest asking this in
detail in [EMAIL PROTECTED]
If your main problem is how to get the column which supplies the binary
stream, then I might be able to help - if you tell me somewhat more
about your setup.
Frank, thanks for the reply but in the mean time we decided to store the
URL's in the datbase and not the dinary data.
But storing formated text into a database field is a related problem,
and Marc Santhof replied as follows:
Use doc.StoreToUrl() using a stream as target and connect that stream
object to the db field (on a prepared statement get/setBinaryStream()
IIRC).
I'm sure *Frank* can help with the details of connecting a stream to a
database column ...
Can you help me Frank :-)
Greetz
Fernand
Ciao
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]