i am making a file browser (for any file type openable by UIWebView - images, movies, audio, text, word...), which deals with encrypted files
the problem is, what aim doing right now, is to i decrypt the file i want to view and load it in a webview request
NSURLRequest *request = [NSURLRequest requestWithURL:fileURL];
[self.webView loadRequest: request];
however the problem is that the file is extracted to disk, to be read...
the problem is, that somebody could recover files deleted
so i tried to use
[webView loadData:documentData MIMEType:mimeType textEncodingName:textEncoding baseURL:baseDocumentURL];
is there a good solution for handling such a situation?
I know this is an old thread, however, you can handle the decryption of data on the fly using NSURLProtocol. In regards to viewing videos, there is a bunch of other protocols you'd need to implement yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With