On Wed, 5 Mar 2008, Jerome Leytier wrote:
I've been trying instanciate a HWPFDocument with an input stream. It's
ok with FileOutputStream but fails with a Serial blob content (getted
from sql result set) converted to binary stream.
InputStream is = sb.getBinaryStream();
HWPFDocument doc = new HWPFDocument(is);
Try writing your binary data out into a file. See if word can open that.
If not, you'll know you have a problem with whatever holds your word file.
Once you've got both word and poi opening the file saved to disk, then
you're in a position to try just opening straight up
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]