<?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: Read file contents in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/313850#M18631</link>
    <description>&lt;P&gt;To access the file content for a file using the API v2 Java SDK, you should use &lt;A href="https://www.dropboxforum.com/box/core/v2/files/DbxUserFilesRequests.html#download-java.lang.String-" target="_self"&gt;the download method&lt;/A&gt;. That gives you a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/DbxDownloader.html" target="_self"&gt;DbxDownloader&lt;/A&gt;&amp;nbsp;which offers a few options for using the file data; downloading it to a local file isn't required.&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_self"&gt;an example Android app for the API v2 Java SDK here&lt;/A&gt;. For instance, &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java#L69" target="_self"&gt;it uses the download method here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 15:11:28 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-11-27T15:11:28Z</dc:date>
    <item>
      <title>Read file contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/313763#M18625</link>
      <description>&lt;P&gt;I'm sure this is answered somewhere else, but clearly I'm not Googling the right thing. I'm working on an android app (java) and I'm trying to read the&amp;nbsp;contents of a file without downloading&amp;nbsp;it (needs to read every time the app opens). I was able to find plenty of examples for API v1, but nothing for v2. I have the basics, but that's about it:&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = DbxRequestConfig.newBuilder("dropbox/my_folder").build();
DbxClientV2 client = new DbxClientV2(config, context.getResources().getString(R.string.access_token));&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:09:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/313763#M18625</guid>
      <dc:creator>drewbiedu</dc:creator>
      <dc:date>2019-05-29T09:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read file contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/313850#M18631</link>
      <description>&lt;P&gt;To access the file content for a file using the API v2 Java SDK, you should use &lt;A href="https://www.dropboxforum.com/box/core/v2/files/DbxUserFilesRequests.html#download-java.lang.String-" target="_self"&gt;the download method&lt;/A&gt;. That gives you a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/DbxDownloader.html" target="_self"&gt;DbxDownloader&lt;/A&gt;&amp;nbsp;which offers a few options for using the file data; downloading it to a local file isn't required.&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_self"&gt;an example Android app for the API v2 Java SDK here&lt;/A&gt;. For instance, &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java#L69" target="_self"&gt;it uses the download method here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 15:11:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/313850#M18631</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-11-27T15:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read file contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/314857#M18698</link>
      <description>&lt;P&gt;Perfect, thanks! I can't tell you how many times I've scoured that page trying to figure out a way to do it. I need to stop developing so late at night&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 18:13:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Read-file-contents/m-p/314857#M18698</guid>
      <dc:creator>drewbiedu</dc:creator>
      <dc:date>2018-12-01T18:13:47Z</dc:date>
    </item>
  </channel>
</rss>

