0
whereas I have files in the formats .epub
, .mobi
and .pdf
hosted on a server.
Is there any way to download these files internally in an Android app, so that the downloaded files cannot be copied by users and are displayed by the app itself? The ideal would be to be able to show the file allowing the user to interact with it by browsing pages and topics. Even if this functionality is outsourced by another application, but maintaining security.
Solutions that are not possible for all formats are also valid.
It is possible yes, you can store the file in blob format directly in the sqlite database, however, it involves a lot of code, it is strictly necessary that the files are confidential or will cause some deceit if the person reads outside the application ? I believe that fits this issue, it is much faster and requires much less work storing the file in the storage of the device and only storing the path to the same.
– Lucas Queiroz Ribeiro
If you really want to store, this question in English has an implementation http://stackoverflow.com/questions/18917338/how-do-i-open-a-pdf-from-a-blob-stored-in-sqlite-database-in-android
– Lucas Queiroz Ribeiro
Yes and necessary, are paid materials, I can not stop the user to take print, but copy the file nor think
– user5020
I got it, in case you have a lot of performance loss by inserting the file directly into the database, you can try to generate a pdf with read, copy and etc.. Doro PDF Writer does this, so you could save directly on the device and in your application release a password of limited use (no copy and print), never tested, but I believe it should work on Android as well as on Desktops
– Lucas Queiroz Ribeiro