954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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, butreading the document directly from MySQL database.

Is it possible to create a FileInputStream directly from MySQL?

Regards,

Thanks in advance

softDeveloper
Junior Poster in Training
67 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: