loading a byte array as an application/pdf mimetype into a UIWebview
<p>I was able to retrieve a pdf file from a web service as a byte array.</p>

<p>I want to load it into a UIWebView for iOS but when I try it using the following:</p>

<pre><code>[wvLetter loadData:data MIMEType:@"application/pdf" 
                                     textEncodingName:@"UTF-8" baseURL:nil];
</code></pre>

<p>The console tells me that:</p>

<blockquote>
  <p>failed to find PDF header: `%PDF' not found.</p>
</blockquote>

<p>I have seen this file, and it is indeed a pdf file, the retrieved size corresponds to the
original file. </p>

<p>What could be happening?</p>

<p>Thanks!</p>
