<?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 save pictures inside an array and then display in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/547324#M26080</link>
    <description>&lt;P&gt;Yes, those examples happen to use the sharingGetSharedLinkFile method, but accessing the result works the same way as filesDownload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the latest issue, I see you opened a new &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fileblob-not-visible-with-latest-version-of-dropbox-api-809/m-p/546981" target="_self"&gt;forum thread&lt;/A&gt; and &lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/809" target="_self"&gt;GitHub issue&lt;/A&gt;, so I'll follow up with you there.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 15:30:08 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-09-27T15:30:08Z</dc:date>
    <item>
      <title>How to save pictures inside an array and then display</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546900#M26068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my vue application I am trying to download pictures from my dropbox account. So far I can get the metadata but I want to get the images and save them inside an array and then display them on my application. How could I do that? This is my code to download / get the information.&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;getImages&lt;/SPAN&gt;() {&lt;BR /&gt;  &lt;SPAN&gt;const &lt;/SPAN&gt;Dropbox = require(&lt;SPAN&gt;"dropbox"&lt;/SPAN&gt;).Dropbox&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  let &lt;/SPAN&gt;pictures2 = []&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  const &lt;/SPAN&gt;dbx = &lt;SPAN&gt;new &lt;/SPAN&gt;Dropbox({&lt;BR /&gt;    &lt;SPAN&gt;accessToken&lt;/SPAN&gt;: &lt;SPAN&gt;'ACCESS_TOKEN'&lt;BR /&gt;&lt;/SPAN&gt;  })&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  dbx.&lt;SPAN&gt;filesDownload&lt;/SPAN&gt;({&lt;BR /&gt;  &lt;SPAN&gt;path&lt;/SPAN&gt;: &lt;SPAN&gt;"/test/road-6576857_1920.jpg"&lt;BR /&gt;&lt;/SPAN&gt;  }).&lt;SPAN&gt;then&lt;/SPAN&gt;(&lt;SPAN&gt;function&lt;/SPAN&gt;(response) {&lt;BR /&gt;    console.log(response)&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;  }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  )}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 20:31:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546900#M26068</guid>
      <dc:creator>haso94</dc:creator>
      <dc:date>2021-09-24T20:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to save pictures inside an array and then display</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546911#M26069</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/69320818/how-to-download-dropbox-pictures-locally-to-a-folder-with-javascript" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/69320818/how-to-download-dropbox-pictures-locally-to-a-folder-with-javascript&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly how you save/display them depends on your app/environment, but the filesDownload method is the right way to download a file's data from Dropbox. You can get the resulting data from the response as shown in &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/download/index.html#L53" target="_self"&gt;this example for a browser environment&lt;/A&gt;, and &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/node/download.js#L20" target="_self"&gt;this example for a node environment&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 21:18:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546911#M26069</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-24T21:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to save pictures inside an array and then display</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546914#M26070</link>
      <description>&lt;P&gt;Thanks for the reply. The one for the browser does not open, I looked at the one for the node environment but the problem is, that I do not have FileBinary for example and name is only accessible in my case with response.result.name. Is it due to the different methods we use?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 21:04:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546914#M26070</guid>
      <dc:creator>haso94</dc:creator>
      <dc:date>2021-09-24T21:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to save pictures inside an array and then display</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546918#M26071</link>
      <description>&lt;P&gt;Apologies, I've fixed the first link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on the type of environment, the file data itself will be available in either the object's 'fileBlob' or 'fileBinary' property.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 21:20:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546918#M26071</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-24T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to save pictures inside an array and then display</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546924#M26072</link>
      <description>&lt;P&gt;Thanks, if I understood the example correctly. The shown method downloads the file from a url but this would be different from my usecase. I want to download it directly from inside a folder to a local folder in my project. For example if I log the response I am getting I can see the FileBlob in the console. But I can not access it from my code to do something like this for example: result.FileBlob what could be the error in this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 21:39:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/546924#M26072</guid>
      <dc:creator>haso94</dc:creator>
      <dc:date>2021-09-24T21:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to save pictures inside an array and then display</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/547324#M26080</link>
      <description>&lt;P&gt;Yes, those examples happen to use the sharingGetSharedLinkFile method, but accessing the result works the same way as filesDownload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the latest issue, I see you opened a new &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fileblob-not-visible-with-latest-version-of-dropbox-api-809/m-p/546981" target="_self"&gt;forum thread&lt;/A&gt; and &lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/809" target="_self"&gt;GitHub issue&lt;/A&gt;, so I'll follow up with you there.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 15:30:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-save-pictures-inside-an-array-and-then-display/m-p/547324#M26080</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-27T15:30:08Z</dc:date>
    </item>
  </channel>
</rss>

