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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:40:49+00:00 2026-05-28T07:40:49+00:00

I am a beginner to iOS development and have just started working with the

  • 0

I am a beginner to iOS development and have just started working with the DropBox SDK for iphone, I am currently using the MacOSX 10.6 version having the Xcode 3.2.5 on it(the simulator is 4.2). Using UIImagePickerController, I could display a selected image on the UIImageView. Now if I want to upload that particular image using DropBox SDK, I have to know its path on my application, as the following code is applied

- (void)uploadFile:(NSString*)filename toPath:(NSString*)path fromPath:(NSString *)sourcePath

this method is defined in DBRestClient.h, a library file from the DropBox SDK for iOS. But as from the above declaration of the method, the “fromPath” of the image which is present in the UIImageView needs to be ascertained to upload it to my account on dropbox. Can you please help me in how to determine the path, or for that matter, any work around which can be applicable.

  • 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-28T07:40:49+00:00Added an answer on May 28, 2026 at 7:40 am

    You would have to write the file to the file system first:

    NSData *data = UIImagePNGRepresentation(imageView.image);
    NSString *file = [NSTemporaryDirectory() stringByAppendingPathComponent:@"upload.png"];
    
    [data writeToFile:file atomically:YES];
    [DBRestClient uploadFile:@"upload.png" toPath:@"Dropbox/Path" fromPath:file];
    

    Note that you could use .jpg too, which is faster, and more compressed, just change UIImagePNGRepresentation to UIImageJPEGRepresentation, and pass a compression value (0.8 – 0.9 is good)

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

Sidebar

Related Questions

I am a beginner in iOS development and have just start using the lasted
A beginner question I am sure, but I have just started working with a
I am a beginner in iOS development, I tried to make an application to
iOS beginner here. I'm using the following code to save my facebook accessToken and
I've just begin delving in to the world of iOS development. I am also
iOS beginner here. I have the following code: [facebook authorize:nil delegate:self]; NSString *string1=[facebook accessToken];
I just started a new iOS project and chose to use Core Data with
I am a beginner in iOS development, and the title pretty much says it.
Please provide me some iOS game development documentation for beginners. I do already have
I am a beginner in iOS development. I am developing an application where I

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.