loading image from a sql database to tableview cell
<pre><code>ContactInfo *data = [self.contacts objectAtIndex:[indexPath row]];

cell.textLabel.text = data.name;
cell.detailTextLabel.text = data.designation;
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;


NSString *filePath = [[NSBundle mainBundle] pathForResource:data.image ofType:@"png"];

NSLog(@"%@",filePath);

UIImage *image1 = [UIImage imageWithContentsOfFile:filePath];
cell.imageView.image = image1;

return cell;
</code></pre>

<p>Here i get the right cell data and the detail text label but the image view does not come it takes some other image with . If any one can advice . </p>
