实际上,我想在我们的Android手机中下载一个PDF文件,并且不想在他尝试通过将手机连接到PC打开时授予在PC中打开PDF文件的权限.所以我想将 PDF 文件存储在 SQLite 数据库解决方案中.
Actually, I want to download a PDF file in our Android phone and don't want to give the permission to open the PDF file in PC when he try to open by connecting the Phone to PC. so I want to go with storing the PDF file in SQLite Data Base solution.
我的问题是...是否可以在 SQLite 数据库中存储 PDF 文件?如果是,如何?或者有没有其他方法可以实现相同的功能?
My question is... Is it possible to store PDF file in SQLite database? If yes, how? Or is there any other way to implement same functionality?
请帮帮我...
谢谢...
推荐答案可以.只需读取pdf文件的所有字节并存储在sqlite db的blob字段中.
You can. Simply read all the bytes of the pdf file and store in the blob field of sqlite db.
更多推荐
如何在Android中的SQLite数据库中存储PDF文件
发布评论