<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help realise download file from Dropbox folder on Visual Basic 2015 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141234#M4415</link>
    <description>&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesRoutes_DownloadAsync_1.htm" target="_blank" rel="nofollow noreferrer"&gt;DownloadAsync&lt;/A&gt; method can be used to download files, as you mentioned, but to find the paths of files, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesRoutes_ListFolderAsync.htm" target="_blank" rel="nofollow noreferrer"&gt;ListFolderAsync&lt;/A&gt;. That will give you a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Files_ListFolderResult.htm" target="_blank" rel="nofollow noreferrer"&gt;ListFolderResult&lt;/A&gt;, which&amp;nbsp;contains entries with paths.&lt;/P&gt;
&lt;P&gt;What have you tried so far, and what are you stuck on? Can you share any code and output that's giving you trouble?&lt;/P&gt;</description>
    <pubDate>Sat, 12 Dec 2015 03:14:33 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-12-12T03:14:33Z</dc:date>
    <item>
      <title>Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141233#M4414</link>
      <description>&lt;P&gt;I need help&amp;nbsp;in&amp;nbsp;realise downloading file from&amp;nbsp;Dropbox folder on Visual Basic 2015. I found example code only on ASP.NET, but I can`t translate it to Visual Basic code.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="dbprettyprint literal-block prettyprint lang-None"&gt;&lt;SPAN class="pln"&gt;async &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Task&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;Download&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;DropboxClient&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; dbx&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;string&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; folder&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;string&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; file&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="kwd"&gt;using&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; response &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; await dbx&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Files&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;DownloadAsync&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;folder &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;+&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"/"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; file&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;))&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="typ"&gt;Console&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;await response&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;GetContentAsStringAsync&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;());&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="pun"&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I have Dropbox account and local dropbox client.&lt;BR /&gt;I need read (only) file from my folder.&lt;BR /&gt;How can I get path to file ? How to save local copy if I need. &lt;BR /&gt;Best regards, Alex.&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:37:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141233#M4414</guid>
      <dc:creator>Alexey S.7</dc:creator>
      <dc:date>2019-05-29T09:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141234#M4415</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesRoutes_DownloadAsync_1.htm" target="_blank" rel="nofollow noreferrer"&gt;DownloadAsync&lt;/A&gt; method can be used to download files, as you mentioned, but to find the paths of files, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesRoutes_ListFolderAsync.htm" target="_blank" rel="nofollow noreferrer"&gt;ListFolderAsync&lt;/A&gt;. That will give you a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Files_ListFolderResult.htm" target="_blank" rel="nofollow noreferrer"&gt;ListFolderResult&lt;/A&gt;, which&amp;nbsp;contains entries with paths.&lt;/P&gt;
&lt;P&gt;What have you tried so far, and what are you stuck on? Can you share any code and output that's giving you trouble?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 03:14:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141234#M4415</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-12T03:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141235#M4416</link>
      <description>&lt;P&gt;Unfortunately, I have not yet ready code, even not working code. I ask step by step example on Visual Basic. Purpose: read file(mytxtfile.txt) from person dropbox folder. That`s all.&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Definition of variables of&amp;nbsp;Dropbox.Api&amp;nbsp;Dropbox.Api. Which one minimum&amp;nbsp;instances of variables do I need for my purpose ?&lt;/P&gt;
&lt;P&gt;Dim dbx as&amp;nbsp;Dropbox.Api.DropboxClient&lt;/P&gt;
&lt;P&gt;What else ?&lt;/P&gt;
&lt;P&gt;2. Which method do I need to use to get local copy of file from dropbox folder ?&lt;/P&gt;
&lt;P&gt;Dim dbxFolder As dbx.Files.ListFolderResult&lt;/P&gt;
&lt;P&gt;How to use&amp;nbsp;dbxFolder to get exact file(mytxtfile.txt) ?&lt;/P&gt;
&lt;P&gt;In general I need simple sample of code on Visual Basic how to get file. Thats all.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:59:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141235#M4416</guid>
      <dc:creator>Alexey S.7</dc:creator>
      <dc:date>2015-12-15T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141236#M4417</link>
      <description>&lt;P&gt;In that case, I&amp;nbsp;recommend starting with the tutorial, which covers the basics, here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/dotnet#tutorial" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/dotnet#tutorial&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 02:45:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141236#M4417</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-16T02:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141237#M4418</link>
      <description>&lt;P&gt;Since more than 6 months iam trying to figure it out, but it looks impossible to me, Finally iam here now&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanna ask, i have uploaded a text file to dropbox, and i can see its content in my forms in VB.Net here is the code i used&lt;/P&gt;
&lt;P&gt;Dim myWebClient As New System.Net.WebClient&lt;BR /&gt; Dim file As New System.IO.StreamReader(myWebClient.OpenRead("&lt;A href="https://www.dropbox.com/s/yfarlrua18vbajo/PRUEBA.txt?dl=1" rel="nofollow noreferrer"&gt;https://www.dropbox.com/s/yfarlrua18vbajo/PRUEBA.txt?dl=1&lt;/A&gt;"))&lt;BR /&gt; RichTextBox1.Text = file.ReadToEnd()&lt;BR /&gt; file.Close()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now my Question is how can i edit this text or add more text into my text file from my VB application ? Is there any other way to edit this text from Visual basic only without using dropbox API ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 23:53:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141237#M4418</guid>
      <dc:creator>Gene H.7</dc:creator>
      <dc:date>2016-07-26T23:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141238#M4419</link>
      <description>&lt;P&gt;Faris, if you just have the shared link to the file, you can't edit the file.&lt;/P&gt;
&lt;P&gt;If you have any further questions, please &lt;A href="https://www.dropboxforum.com/hc/en-us/community/posts/new?community_post%5Btopic_id%5D=200209245" target="_blank" rel="nofollow noreferrer"&gt;open your own thread&lt;/A&gt;&amp;nbsp;instead of replying on this unrelated thread, so that we don't spam anyone else on it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 01:03:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/141238#M4419</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-27T01:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help realise download file from Dropbox folder on Visual Basic 2015</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/196819#M9034</link>
      <description>&lt;PRE&gt;Public Async Function Download(destination As String, file As String) As Task(Of Boolean)
     Try
                If client Is Nothing Then Await GetAccessToken() ' &amp;lt;- if your client is not defined then define a new client here
                Using response = Await client.Files.DownloadAsync("/" + file.Replace("\", "/")).ConfigureAwait(False) ' paths use / seperators, 
                    Dim result = Await response.GetContentAsByteArrayAsync().ConfigureAwait(False) ' wait for download completion
                    System.IO.File.WriteAllBytes(destination, result) ' write to file system
                End Using
                Return True
            Catch ex As Exception
                MsgBox(ex.Message, MsgBoxStyle.Critical, "Error downloading")
                Return False
            End Try&lt;BR /&gt;end function&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2016 12:33:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-realise-download-file-from-Dropbox-folder-on-Visual-Basic/m-p/196819#M9034</guid>
      <dc:creator>knight2601</dc:creator>
      <dc:date>2016-12-07T12:33:32Z</dc:date>
    </item>
  </channel>
</rss>

