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

The Archive Base Latest Questions

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

In my application, the user can record a video using the UIImagePickerController, and I

  • 0

In my application, the user can record a video using the UIImagePickerController, and I need to save it to disk for later use. I’ve gotten the path out of the info dictionary and I’m going to save it to my documents directory, but the problem I’m having is that the URL passed in the dictionary is just that – a URL and not a file path. When I convert it to a string using absoluteString and pass that as the source path to my file manager, it fails saying the source file wasn’t found.

Old Path: file://localhost/private/var/mobile/Applications/77B4D2B8-DE12-4643-82F0-2ECC948E4DBC/tmp/capture/capturedvideo.MOV

New Path: /var/mobile/Applications/77B4D2B8-DE12-4643-82F0-2ECC948E4DBC/Documents/video1.mov

There’s got to be an easy way to convert my URL to something the file manager can handle. I’m guessing I can’t just leave all the videos in the tmp directory, they must be saved to the documents directory if I want to keep them around right?

Also, this isn’t really related, but how might I get a thumbnail of that video to show in a table view?

  • 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-13T05:45:50+00:00Added an answer on May 13, 2026 at 5:45 am

    There’s got to be an easy way to convert my URL to something the file manager can handle.

    You’re right — there is an easy way, it’s just buried in the documentation:

    NSString *myPath = [myUrl path];
    

    From the docs for the path method:

    Return Value
    The path of the URL. If the receiver does not conform to RFC 1808, returns nil. If isFileURL returns YES, the return value is suitable for input into NSFileManager or NSPathUtilities. If the path has a trailing slash it is stripped.

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

Sidebar

Related Questions

How can I find out, which keyboard layout the user of my ruby application
I have a web application with users and their documents. Each user can have
In a web application I am working on, the user can click on a
I have an application that shows a list of items. The user can click
I have a Timestamp value that comes from my application. The user can be
How can I dismiss dialog in Cocoa application when user presses Esc or Enter
I need to record keystrokes (if user pressed 'ABCS', I wand that saved in
We have a current application where user login credentials are stored in a SQL
I've got a multi-user application having some critical data of the users. I am
For part of a web application the user needs to import some data from

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.