how to retrieve image from sqlite3?
Posted
by summer
on Stack Overflow
See other posts from Stack Overflow
or by summer
Published on 2010-03-20T04:52:45Z
Indexed on
2010/03/20
5:01 UTC
Read the original article
Hit count: 376
sorry guys..i know i had been asking alot of question..but ironically few has given me solution, and so now i really need a solution to the final part of my app?how to i retrieve image from sqlite to be display in the uiimageview?with conversion...
NSData *imgData = [[NSData alloc] initWithBytes:sqlite3_column_blob(selectstmt, 3) length: sqlite3_column_bytes(selectstmt, 3)];
snap2playObj.snapImage = [UIImage imageWithData:imgData];
do i do it the normal way or do i need to convert it back to some string or something?kinda no clues..need some example or solution..and i wanna display it in my detailview
© Stack Overflow or respective owner