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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:49:53+00:00 2026-06-07T05:49:53+00:00

My idea: syncing music without wifi or bluetooth. Its a work around to use

  • 0

My idea: syncing music without wifi or bluetooth. Its a work around to use camera connection kit to copy files to and from ipad without JAILBREAKING!First I get the the files I want , then I compress them into a zip file. Then I want to rename the extension JPG, so the iPad can recognize the file. Then I copy it to my sd card, then use camera connection kit to connect it to my iPad.

I wanted my app to copy the entire jpg form dcim so that I can change the file extension back to zip,then extract it to retrieve my files.

But so far I have only found a way to copy the file/jpg into my app but now I need to change the file extension back to zip, then export it to another app to be unextracted to retrieve my file.

Ps: I just need to figure out how to change file extensions in the app and export it!

  • 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-06-07T05:49:54+00:00Added an answer on June 7, 2026 at 5:49 am

    It’s easy to change file extensions, because iOS doesn’t support file renaming. Just duplicate the file and write it to a path that contains the zip extension:

    //get the documents directory
    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSError *error;
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    
    //append the name of the file in jpg form
    NSString *jpgPath = [documentsDirectory stringByAppendingPathComponent:@"myFile.jpg"];
    
    //check if the file exists (completely unnecessary).
    if ([fileManager fileExistsAtPath:jpgPath]) {
        //get new resource path with different extension
        NSString *resourcePath = [documentsDirectory stringByAppendingPathComponent:@"myFile.zip"];
        //copy it over
        [fileManager copyItemAtPath:jpgPath toPath:resourcePath error:&error];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My idea: syncing music without wifi or bluetooth. First I get the the files
My idea is to use a textarea to let the user copy email name
Is there any way to use Dropbox to sync selected local files? I like
Any idea why this function doesn't work properly in Internet Explorer? function days_between(check_in, check_out)
Any idea how to set background color of a UIButton? I tried to use
Any idea why the following doesn't work? (R3) o: make object! [ foo: does
My idea was to switch between some colors, so I don't have to use
Idea taken from here - this time you can only use PHP. Is this
Using IDEA 9/10, I don't want to use MVN2 anymore (reasons mostly similar to
Any idea or link of how to declare / use a particular image or

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.