<?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: JavaScript SDK does not return thumbnails in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219464#M11590</link>
    <description>&lt;P&gt;Oh I see, I did not realize the data is included in fileBlob.&lt;/P&gt;&lt;P&gt;Thanks Greg&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 18:20:56 GMT</pubDate>
    <dc:creator>neunygph</dc:creator>
    <dc:date>2017-05-04T18:20:56Z</dc:date>
    <item>
      <title>JavaScript SDK does not return thumbnails</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219426#M11584</link>
      <description>&lt;P&gt;I'm trying to use Dropbox SDK to retrieve an imge thumbnail with&amp;nbsp;&lt;/P&gt;&lt;P&gt;filesGetThumbnail method. I used&lt;/P&gt;&lt;P&gt;Dropbox.filesGetThumbnail and I received the response successfully but look like it only return the image's properties such as size, name, path..etc but there was no base64 encoded value in the return as expexted. I tried the same image with the API version 2 and it returned base64. Just wonder if this is a bug or an expected behavior from the SDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. If it's an expected behavior, is there a way to get image data such as base64 encoded or image URL/source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. How do I get the response header in order to get the image's etag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219426#M11584</guid>
      <dc:creator>neunygph</dc:creator>
      <dc:date>2019-05-29T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript SDK does not return thumbnails</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219461#M11588</link>
      <description>&lt;P&gt;1. The&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesGetThumbnail__anchor" target="_self"&gt;filesGetThumbnail&lt;/A&gt;&amp;nbsp;(and any other method that returns data in the response) makes the data available in the response's fileBlob property, if you're running in the browser, and&amp;nbsp;fileBinary if you're running in node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for example, you can do this:&lt;/P&gt;
&lt;PRE&gt;dbx.filesGetThumbnail({path: remoteFilePath})
  .then(function(response) {
    console.log(response);
    console.log(response.rev);
    console.log(response.fileBlob);

    // do whatever you want with the data here, e.g.:
    objectURL = URL.createObjectURL(response.fileBlob)
    var downloadButton = document.createElement('a');
    downloadButton.setAttribute('href', objectURL);
    downloadButton.setAttribute('download', response.name);
    downloadButton.setAttribute('class', 'button');
    downloadButton.innerText = 'Download: ' + response.name;
    document.getElementById('results').appendChild(downloadButton);
  })
  .catch(function(error) {
    console.error(error);
  });&lt;/PRE&gt;
&lt;P&gt;2. I covered this a bit in &lt;A href="https://www.dropboxforum.com/t5/API-support/Response-headers/m-p/219273#M11563" target="_self"&gt;your other thread&lt;/A&gt;, but you should use the native properties on the response project. The code example above access the "rev", for instance.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 18:04:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219461#M11588</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-04T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript SDK does not return thumbnails</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219464#M11590</link>
      <description>&lt;P&gt;Oh I see, I did not realize the data is included in fileBlob.&lt;/P&gt;&lt;P&gt;Thanks Greg&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 18:20:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JavaScript-SDK-does-not-return-thumbnails/m-p/219464#M11590</guid>
      <dc:creator>neunygph</dc:creator>
      <dc:date>2017-05-04T18:20:56Z</dc:date>
    </item>
  </channel>
</rss>

