Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3699102
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:03:45+00:00 2026-05-19T05:03:45+00:00

In my iPhone App I want to retrieve image from (stored in ) sqlite

  • 0

In my iPhone App I want to retrieve image from (stored in ) sqlite database table in “BLOB” datafield.

For that I am storing my image in NSData using code

NSData *imageData = UIImagePNGRepresentation(image);

and I am also able to retrieve image from NSData -> UIImage by code

self.img1=[UIImage imageWithData:imageData];

And displaying Image into imageView by

imageView2.image=img1;

I am storing image (in NSData form) into sqlite database table column (of BLOB Datatype) successfully.

I am using below code to retrieve image from database

NSData *imageData2 = [[arraySelect objectAtIndex:0] valueForKey:@"image_column"];   
NSLog(@"imagedata2 in retrive :: %@",imageData2);

in NSLOG i am getting the same data stored in database column (in blob datatype “NSData form” )

Now I am retrieving image by
(while debugging it crashes here and showing meaasge EXE_BAD_ACCESS)

self.img3=[UIImage imageWithData:imageData2];
imageview3.image=img3;

But I am not getting that image in imageView.
I checked all outlets but they are ok.

So please Help and Suggest what I should do to get image in imageView from database.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T05:03:45+00:00Added an answer on May 19, 2026 at 5:03 am

    @Prerak i think this will help you something..and solve your problem
    http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my iphone app i want retrieve videos list from my account in youtube,
I'm using FMDB for my iPhone App database and i want to create the
I want to retrieve data from server using HTTP POST method for my iphone
I'm making an iPhone app in which I retrieve JSON data from http://maps.googleapis.com/maps/api/geocode/json?address=canada&sensor=true ,
I have an iphone app that I want to be able to navigate to
In iPhone App I want to send Image and Text together in single Email
In my iPhone app I want to read news feed from public Facebook page
I have a tab-based iPhone app where I want to increase the perceived start-up
I want to check if my iPhone app is running for the first time.
I want to create an iPhone app which makes calls to a web service.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.