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

  • Home
  • SEARCH
  • 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

I'm developing an iPhone app that uses the built-in SQLite database. I'm trying to
In my iphone app i want retrieve videos list from my account in youtube,
I'm writing my first iPhone app. I want to use some methods from the
I want to upload a plist file to my server from my iphone app.
I want to make a really simple iphone app: one screen with a single
I've tested my iPhone app on the iPhone. Now I want to test it
How do I manipulate textfield variables within an iPhone app? I want to have
If I want my app to behave differently on a jailbroken iPhone, how would
I have an iPhone app that hides the status bar. However, my main view
I have a simple iphone app that's based on the CrashLanding sample app. So

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.