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 7579521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:42:06+00:00 2026-05-30T17:42:06+00:00

After much research about the best way to save an image to a sqlite

  • 0

After much research about the best way to save an image to a sqlite db in iOS, i’ve decided to save the filepath of the image in an entity and just reference it when it comes to displaying it as a thumbnail.

I’m using the following code to save the image taken with the camera:

    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)snagPhoto editingInfo:(NSDictionary *)editingInfo
{
    [self.library saveImage:snagPhoto toAlbum:@"Snags" withCompletionBlock:^(NSError *error) {

        if (error) 
        {  
            NSLog(@"error");  
        } 
    }];  

    [picker dismissModalViewControllerAnimated:NO];
}

All I need to do is get the filepath of ‘snagPhoto’.

  • 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-30T17:42:07+00:00Added an answer on May 30, 2026 at 5:42 pm

    The proper method to use on ALAssetsLibrary is writeImageToSavedPhotosAlbum:metadata:completionBlock: or writeImageToSavedPhotosAlbum:orientation:completionBlock: — these will lead to an asset URL that you can later use with assetForURL:resultBlock:failureBlock: to get a reference to the image.

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

Sidebar

Related Questions

Not knowing the proper way, after much research on the web I found so
After much research and trial and error I found how to store the items
I know about $(Delphi) and $EDNAME but after much seaching I cant find a
OK, after much research, and help with stackoverflow users, I've narrowed down how to
After much research I am a little confused by which identity tracker I should
I installed PHP and MySql separately, configured IIS and php.ini, after much research I
After much research, I have learned that binding the scroll event to the $(window)
I just implemented the Objective Flicker library for an iPhone app and after much
I just saw that there is no so much documentation about sfGuardAuth groups and
After much googling I have been wondering what the benefits/differences are between mysql and

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.