softDeveloper 0 Junior Poster in Training

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.