thanks for your reply.
OS is Windows 10, JDK version is 1.7


张小辉
星环科技/数据工程部
18701960364
 
From: Murphy, Mark [via Apache POI]
Date: 2017-05-17 22:59
To: xjtuzxh
Subject: RE: new XWPFDocument(fis) is blocked
What OS are you running on? 

-----Original Message----- 
From: xjtuzxh [mailto:[hidden email]] 
Sent: Wednesday, May 17, 2017 4:49 AM 
To: [hidden email] 
Subject: new XWPFDocument(fis) is blocked 

hi all, 
    This is my first topic on POI, I am from china so my English is a little 
poor. 
    
    I am trying  extract text from *.docx file which can be opened using the 
following code, but it is blocked when executing this statement: 
document = new XWPFDocument(is); 
no exception or error is reported. so how to debug. 


CODE: 
InputStream is = new FileInputStream(file); System.out.println(is.available()); 
document = new XWPFDocument(is); 
extractor = new XWPFWordExtractor(document); writer.write(extractor.getText()); 
writer.flush(); 


version of poi jars: 3.16 



-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
Sent from the POI - User mailing list archive at Nabble.com. 

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


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





If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727569.html
 
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML 




--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727576.html
Sent from the POI - User mailing list archive at Nabble.com.

Reply via email to