I have a NSData object that holds the contents of a MS Office Word document that I want to show - using UIWebView.
I'm using the following command:
[self.webView loadData:data MIMEType:@"application/msword" textEncodingName:@"utf-8" baseURL:nil];
Unfortunately, I get an empty screen.
If I try to save the data to a file and open the file using UIWebView's requestWithURL:url method - the file opens just fine. However, it is crucial for the application to load the file from the data in memory and not to save, in any way, the data to a file on the device.
What do I need to show to load an NSData object containing a MS Office document without having to save the data first on the device?