Displaying issue in Webview

Posted by milanjansari on Stack Overflow See other posts from Stack Overflow or by milanjansari
Published on 2010-03-23T11:40:39Z Indexed on 2010/03/23 11:43 UTC
Read the original article Hit count: 359

Filed under:

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

© Stack Overflow or respective owner

Related posts about iphone-web