Hello Everyone, i am trying to extract email-id from a .doc or .docx file from a folder. My code is running fine for .doc file but for .docx its not showing anything. What should i do?
posted 4 years ago
You can't treat a structured file format as if it were text. For DOC that may work by chance, but for DOCX it won't (because its contents are compressed). You need to use a library like Apache POI to get at the content.