We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,676 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

HWPFDocument MySQL Word document read

Hi All!

I'm trying to read ms word documents stored in my dataBase in a BLOB column.

However, concerning the encodings there are issues with characters. My web application can read the ms word documents the to an iframe with POIFSFileSystem without problems.

File docFile = null;
   	WordExtractor docExtractor = null ;
   	WordExtractor exprExtractor = null ;
   	try {
   	docFile = new File("c:\File.doc");
   	
   	FileInputStream fis=new FileInputStream(docFile.getAbsolutePath());

   	HWPFDocument doc=new HWPFDocument(fis);

   	docExtractor = new WordExtractor(doc);

However, I have to read it from a file in my system. My goal is to do the same, but reading the document directly from MySQL database.

Is it possible to create a FileInputStream directly from MySQL?

Regards,

Thanks in advance

1
Contributor
0
Replies
1
View
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0560 seconds using 2.67MB