<?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: how to do I get content of a file in Dropboxsdk using java code in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603502#M28043</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1544733"&gt;@sanjeev_hansanur1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... convert the inputstream to string&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1544733"&gt;@sanjeev_hansanur1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;A good way to convert raw input stream to whatever you want (including string) is wrapping it using &lt;A title="Lets an application read primitive Java data types from an underlying input stream in a machine-independent way" href="https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/io/DataInputStream.html" target="_blank" rel="noopener"&gt;DataInputStream&lt;/A&gt; class. The benefit here is that you don't need buffering, so the need of engaging memory decreases. Processing happens "on flight" (or could be at least, if you code properly - process resulting string, or whatever else, piece by piece - following the streaming conception). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 20:56:12 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-06-15T20:56:12Z</dc:date>
    <item>
      <title>how to do I get content of a file in Dropboxsdk using java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603461#M28037</link>
      <description>&lt;P&gt;how do I get content of a file using dropboxsdk code and we tried with download sdk method but Inputstream is not converting in to proper string&lt;/P&gt;
&lt;P&gt;Please help us with some sample code for download where we can convert the inputstream to string&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:24:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603461#M28037</guid>
      <dc:creator>sanjeev_hansanur1</dc:creator>
      <dc:date>2022-06-16T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to do I get content of a file in Dropboxsdk using java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603485#M28042</link>
      <description>&lt;P&gt;You can retrieve file content using &lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_blank"&gt;the Dropbox Java SDK&lt;/A&gt; via the download methods. You can find &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.2.0/com/dropbox/core/v2/files/DbxUserFilesRequests.html#download(java.lang.String)" target="_self"&gt;the documentation for the download methods here&lt;/A&gt;. There are also some examples of downloading files using that SDK &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/e52fc828c7c753e04c3fa9d47ab6de7e85d000c4/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java#L67" target="_blank"&gt;here&lt;/A&gt; and &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/e52fc828c7c753e04c3fa9d47ab6de7e85d000c4/examples/tutorial/src/main/java/com/dropbox/core/examples/tutorial/Main.java#L54" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you already have an InputStream and need to get a String from it. That's more of a general Java question and so outside the scope of Dropbox API support, but you can find information on doing so in &lt;A href="https://stackoverflow.com/questions/309424/how-do-i-read-convert-an-inputstream-into-a-string-in-java" target="_blank"&gt;this post&lt;/A&gt;, for example.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:02:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603485#M28042</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-15T19:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to do I get content of a file in Dropboxsdk using java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603502#M28043</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1544733"&gt;@sanjeev_hansanur1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... convert the inputstream to string&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1544733"&gt;@sanjeev_hansanur1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;A good way to convert raw input stream to whatever you want (including string) is wrapping it using &lt;A title="Lets an application read primitive Java data types from an underlying input stream in a machine-independent way" href="https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/io/DataInputStream.html" target="_blank" rel="noopener"&gt;DataInputStream&lt;/A&gt; class. The benefit here is that you don't need buffering, so the need of engaging memory decreases. Processing happens "on flight" (or could be at least, if you code properly - process resulting string, or whatever else, piece by piece - following the streaming conception). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 20:56:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-do-I-get-content-of-a-file-in-Dropboxsdk-using-java-code/m-p/603502#M28043</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-15T20:56:12Z</dc:date>
    </item>
  </channel>
</rss>

