I am using sqlite database and i have stored the path of image in my sqlite file.
But now I want to display image from the path stored in sqlite file.
for that I have written following code.
image_wine.image=[[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:[wineDetail objectForKey:@"wine_photo1"]]];
where image_wine is my UIImageView and
wine_photo1 is my sqlite database field where path is stored.
but I am not able to get the image on my simulator when I run the app.
plz tell me how to solve the problem.
thanx.
You are doing a very basic mistake. You should assign UIImage instance to an UIImage object, not an UIImageView instance.