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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:53:07+00:00 2026-05-23T11:53:07+00:00

i am selecting one image from photo library to display on my image view.

  • 0

i am selecting one image from photo library to display on my image view.

there is a save button to save this image file to app bundle.

however i need to save the same selected image in another device with the same name(images are same).so if the user entering image name in another device manually,there is a chance to occur the spelling mistake with the image name.so it will not save the same name.

i need to avoid this problem. can i get any unique key from the displayed image(it will always same for the image).then i can save the file name of the image as the unique value without giving a option of entering image name to the user.so the another device will also save the same image as unique name which is saved in another app.

can any tell me a good way to do it.just i need to save the same images with same name in different apps without giving a option to enter image name manually(on i pad based).

  • 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-23T11:53:07+00:00Added an answer on May 23, 2026 at 11:53 am

    You can use the hash of the image like MD5 or SHA

    For example a question about MD5 hash :

    MD5 algorithm in Objective C

    EDIT using the code in the previous link :

    MyExtensions.h

    @interface NSData (MyExtensions)
        - (NSString*)md5;
    @end
    

    MyExtensions.m

    #import "MyExtensions.h"
    #import <CommonCrypto/CommonDigest.h> // Need to import for CC_MD5 access
    
    @implementation NSData (MyExtensions)
    - (NSString*)md5
    {
        unsigned char result[16];
        CC_MD5( self.bytes, self.length, result ); // This is the md5 call
        return [NSString stringWithFormat:
            @"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
            result[0], result[1], result[2], result[3], 
            result[4], result[5], result[6], result[7],
            result[8], result[9], result[10], result[11],
            result[12], result[13], result[14], result[15]
            ];  
    }
    @end
    

    Now you can call the code like this:

    -(NSString *) md5Image:(UIImage *)img {
        return [UIImagePNGRepresentation(img) md5];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one Demo app download from developer.apple.com I have problme that this app
i have a radiogroup, in which i am selecting any one from the group.
This is an extension of this question: SQLite problem selecting two columns as one
I'm having some problems selecting an image from my gallery and using that in
I am new in Iphone development. I want to upload image from Iphone library
I have a tableView and when the user is selecting one of the cells,
Here i am selecting a single li item in one list and on click
I need to create one drop down list contains some Languages. By selecting any
see fiddle i have html table and one textbox and one button.make cell selection
Camera will capture image and store in a folder(.bmp file).Simultaneously our application needs to

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.