views:

22

answers:

0

Hello,

i did save png and pdf file in Sqlite successfully. but when i retrive png and pdf data from sqlite and trying to display in Webview its create a problem. for exp

NSData *data = [[NSData alloc] initWithBytes:sqlite3_column_blob(selectstmt, 1)                          length:sqlite3_column_bytes(selectstmt, 3)];

[webview loadData:data MIMEType:@"image/png" textEncodingName:@"UTF-8" baseURL:
                        [NSURL URLWithString:@""]];

but problem is there only see image tag not display image.

any solution of below of the code. Thanks you