开发者

how to import .doc files from sd card into application database?

开发者 https://www.devze.com 2023-01-31 13:39 出处:网络
I want to import .doc files from sdcard into my application and also in database of my application but when i am importing file text is开发者_JAVA百科 not displaying correctly. It is showing symbols c

I want to import .doc files from sdcard into my application and also in database of my application but when i am importing file text is开发者_JAVA百科 not displaying correctly. It is showing symbols characters. How to change format from .doc to .txt


.doc is a Microsoft Word document file format which is not a plain text file. Its a binary file. So if you want to show only text, use a plain ASCII (.txt) file. If you want to show text with formatting or images then consider using HTML with WebView.


The .doc is a complex binary format and you will not be able to accomplish that easy. Feel free to read the specification here:

http://msdn.microsoft.com/en-us/library/cc313105(v=office.12).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消