<?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 Checking if download has completed in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Checking-if-download-has-completed/m-p/185989#M7871</link>
    <description>&lt;P&gt;My language is Java.&lt;/P&gt;
&lt;P&gt;I need to download a file from Dropbox and then I need to run it.&lt;/P&gt;
&lt;P&gt;The problem is that if I run it too early, it won't run, and everyones' download speeds are different so there is no way of knowing when it is completed.&lt;/P&gt;
&lt;P&gt;Is there a function for in the API, or any way of knowing?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:33:12 GMT</pubDate>
    <dc:creator>Lapino L.</dc:creator>
    <dc:date>2019-05-29T09:33:12Z</dc:date>
    <item>
      <title>Checking if download has completed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Checking-if-download-has-completed/m-p/185989#M7871</link>
      <description>&lt;P&gt;My language is Java.&lt;/P&gt;
&lt;P&gt;I need to download a file from Dropbox and then I need to run it.&lt;/P&gt;
&lt;P&gt;The problem is that if I run it too early, it won't run, and everyones' download speeds are different so there is no way of knowing when it is completed.&lt;/P&gt;
&lt;P&gt;Is there a function for in the API, or any way of knowing?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Checking-if-download-has-completed/m-p/185989#M7871</guid>
      <dc:creator>Lapino L.</dc:creator>
      <dc:date>2019-05-29T09:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if download has completed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Checking-if-download-has-completed/m-p/185990#M7872</link>
      <description>&lt;P&gt;Are you using one of the official Java SDKs? If you're using the v1 Java SDK, you can use the&amp;nbsp;getFile method:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxClient.html#getFile(java.lang.String,%20java.lang.String,%20java.io.OutputStream)" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxClient.html#getFile(java.lang.String,%20java.lang.String,%20java.io.OutputStream)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In the v2 Java SDK, you would use the download method:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#download-java.lang.String-" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#download-java.lang.String-&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In either case, you shouldn't run anything that requires that data until the data has been downloaded. The v1 method blocks until the data has been downloaded. The v2 method returns &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/DbxDownloader.html" target="_blank" rel="nofollow noreferrer"&gt;an object&lt;/A&gt; you can use to read out the data.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 00:09:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Checking-if-download-has-completed/m-p/185990#M7872</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-26T00:09:49Z</dc:date>
    </item>
  </channel>
</rss>

