Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

sudip k.'s avatar
sudip k.
New member | Level 1
9 years ago

how i am get base 64 file data ?

i am creating  a IOS application.and i am using dropbox API for getting file(PDF,DOC) on dropbox and i want to send this file on server on base 64. i  get all file(PDF,DOC) lists name.but i don't understand how i get the file on base64 format? 

6 Replies

Replies have been turned off for this discussion
  • Steve M.'s avatar
    Steve M.
    Icon for Dropbox Staff rankDropbox Staff
    9 years ago

    Downloading a file using the Dropbox API will give you the raw bytes of the file. If you want to then convert that to Base64, you'll have to do that yourself. Here's an example I found by searching for "ios base64": http://iosdevelopertips.com/core-services/encode-decode-using-base64.html.

  • sudip k.'s avatar
    sudip k.
    New member | Level 1
    9 years ago

    Hello Steave ,
    how i download a file from dropbox?

  • Steve M.'s avatar
    Steve M.
    Icon for Dropbox Staff rankDropbox Staff
    9 years ago

    That depends on which SDK you're using, but the tutorial for that SDK should show you how to do that. E.g. the "Downloading files" section of https://www.dropbox.com/developers-v1/core/start/ios or the "Try some API requests" section of https://www.dropbox.com/developers/documentation/swift#tutorial.

  • sudip k.'s avatar
    sudip k.
    New member | Level 1
    9 years ago

    hello Steve

    i want to show my pdf,doc file and created any folder inside dropbox.here i got list of pdf file and doc file but i does not get any solution how to show folder.plz steve help me.

    this code i am using for showing doc , pdf file and i want show folder.which extension i use for showing folder?

     NSArray* validExtensions = [NSArray arrayWithObjects:@"pdf", @"docx",@"doc", nil];

  • Steve M.'s avatar
    Steve M.
    Icon for Dropbox Staff rankDropbox Staff
    9 years ago

    This question seems unrelated to the original question in this thread. Please create a new post to ask a new question.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!