I have these few lines of code in my ASP.net app to get files from DropBox.
And I get no error but it DOES NOT WORK? nothing happens. This code is in an Async function
an it does get invoked correctly, etc, etc. Folders are correct. App in DropBox is correct. My Token is correct. Any help would be much appreciated. Thank you.
Dim myDbClient As New DropboxClient("MyToken")
myDbClient.Files.DownloadAsync("/" + folder + "/" + fileName).ConfigureAwait(False)
Dim folder = "Mike_Lino_Taxi_App" 'dropbox folder name
Dim fileName = "lino123A.txt" 'dropbox file name
response = Await myDbClient.Files.DownloadAsync("/" + folder + "/" + fileName).ConfigureAwait(False)
Dim bytes = Await response.GetContentAsByteArrayAsync().ConfigureAwait(False)
Using fileStream = File.Create("C:\Projects\Mike\lino777.txt") ' local path
fileStream.Write(bytes, 0, bytes.Length)