Export data from a database and upload file to dropbox C #

1

I would like to know if it is possible and if it is, how would the code be or an example of how to do it for mobile devices or windows CE ?.

I am programming in visual studio 2008, SQL Compact 3.5, .net Compact.

    
asked by Cristian R.M 12.09.2016 в 15:14
source

1 answer

0

Accounts with .net libraries that allow you to interact with the dropbox service

Dropbox.NET is our .NET SDK for API v2

The examples use asp.net mvc if you look at the EditController You will see that you use UploadAsync() to upload the file

using (var client = this.currentUser.GetAuthenticatedClient())
        {
            if (client == null)
            {
                return RedirectToAction("Profile", "Home");
            }

            using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content)))
            {
                var upload = await client.Files.UploadAsync("/" + filename, body: mem);

                var metadata = ArticleMetadata.Parse(upload.Name, upload.Rev);

                return Redirect(string.Format(
                    CultureInfo.InvariantCulture,
                    "/Blogs/{0}/{1}",
                    this.currentUser.BlogName,
                    metadata.DisplayName));
            }
}

the subject would be validate if from the Device created in Win Ce you can use the library

If you are not going to have to create an api web service in asp.net mvc and send the file to it to upload it to dropbox

    
answered by 12.09.2016 в 18:01