poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Leytier" <jleyt...@pacifico-meetings.com>
Subject HWPFDocument && InputStream
Date Wed, 05 Mar 2008 15:48:25 GMT
Hi, 

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); 
Why it resets the input with this type of stream and function with stream obtained from file
?

Please, any idea ?
 

__________________________________________________________

Jérôme Leytier
Departamento Informática

GRUPO PACÍFICO
Marià Cubí, 4 - Pral. 
08006 Barcelona - SPAIN 
Tel. (34) 932.388.777
Fax. (34) 932.387.488
jleytier@pacifico-meetings.com
www.pacifico-meetings.com <http://www.pacifico-meetings.com/> 

______________________________________________
This message is for the designated recipient only and may contain privileged or
confidential information. If you have received it in error, please notify the sender 
immediately and delete the original. Any other use of the email by you is prohibited

 P  Por favor, antes de imprimir este e-mail piense si es necesario hacerlo: El medio ambiente
es cosa de todos. 
                  Please consider the environment before printing this email

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message