Sorry, I have no real idea as whenever I had to store a document into a
database, I used one of two options; either storing a pointer to the file or
storing the file itself as a BLOB. It may well be that you need to stream
the workbook out as a temporary file and then read it back in again - the
FileInputStream allows you, for instance, to read the files contents as
bytes; using this you could assemble an in memory array and then store this
into the database. Alternatively, take a look at using
PipedInput/OutputStreams. Typically, these are used as linked pairs for
inter-process communication and I could imagime one thread constructing the
workbook and writing it to a PipedOutputStream whilst another thread reads
from the linked PipedInputStream writing the data to a byte array.

Yours

Mark B
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/new-bee-error-when-opening-excel-tp3349074p3350008.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to