I receive a binary pdf file, which is base64Binary encoded. How can I convert it back on the iPhone? What tool kits can I use?
Thanks.
Solved:
NSData theData = [NSData dataWithData:[GTMBase64 decodeString:theBinary]]; //first transfer it to NSData.
[m_oTestingWeb loadData:theData
MIMEType:@"application/pdf"
textEncodingName:@"UTF-8"
baseURL:nil]; //using the web view to show it back
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